[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 30
File: K&R himegoto waifux2.png (1 MB, 1000x1400) Image search: [Google]
K&R himegoto waifux2.png
1 MB, 1000x1400
old thread: >>52021427

What are you working on, /g/?
>>
Fuck you OP. Wait for the old thread to reach the bump limit.

Also, Himegoto was fucking shit/
>>
File: uhug.png (4 KB, 280x318) Image search: [Google]
uhug.png
4 KB, 280x318
/dpt/ can't make a triangle function tbqh
>>
>>52028625
Are you talking about the anime or manga?
My capacity for tolerating your opinions depends on this one fact.
>>
>>52028609
Added sound feed back. My computer says "New Key" whenever a key is found. Now I need to work on automation, or at least copying keys into clipboard. Didn't work on networking or missing OPs.
>>
>>52028637
The anime. Why the hell would I read some fag mango?
>>
I'm writing an NES emulator for fun. I need to pick a graphics library though.
I might use Vulkan since it's new and I'm pretty sure there isn't a Vulkan NES emulator yet.

Any suggestions?
>>
>>52028632
Pretty much. Most people here only know some basic JS or Python that they learned on Codecademy but keep shitposting anyway.
>>
>>52028632
triangles are piss easy
/dpt/ can't make a meme star generator
$ ./star "meme master"
m m m
e e e
m m m
e e e

m m m
a a a
s s s
t t t
eee
meme masteretsam emem
eee
t t t
s s s
a a a
m m m

e e e
m m m
e e e
m m m
>>
>>52028645
Oh, and OCR still needs to be added.
>>
>>52028651
>I'm pretty sure there isn't a Vulkan NES emulator yet
Obviously, considering the Vulkan standard hasn't even been released yet.
>>
>>52028647
Because the anime is only 4 minutes per episode, and frankly it's just a cheap and shitty experience compared to the manga which runs for much longer and actually has some depth and character development that couldn't be had in 4 minutes of animation.
>>
>>52028663
Oh it hasn't? That's a shame. I just got to the point where I need to pick a library and I vaguely remember /dpt/ talking highly about it.

I suppose I'll just use opengl then.
>>
File: 1450770707376.png (289 KB, 514x424) Image search: [Google]
1450770707376.png
289 KB, 514x424
>>52028664
>Reading some fag series for "depth and character development"
>>
>>52028675
>le smug anime gril
wow, you sure showed me :^)
>>
>>52028653
Post another star with a different length senpai.
>>
>>52028682
It's a fucking series about traps. It's obviously ONLY about fanservice, which basically makes it very-softcore porn.
>I watch gay porn for the depth and character development
>>
>>52028692
d                  d                  d
i i i
f f f
f f f
e e e
r r r
e e e
n n n
t t t

l l l
e e e
n n n
g g g
t t t
h h h

: : :
^^^
different length :^)^: htgnel tnereffid
^^^
: : :

h h h
t t t
g g g
n n n
e e e
l l l

t t t
n n n
e e e
r r r
e e e
f f f
f f f
i i i
d d d
>>
>>52028692
Not them but

  codesnips  ./gchallenge "Memer Supreme"
M M M
e e e
m m m
e e e
r r r

S S S
u u u
p p p
r r r
e e e
mmm
Memer SuprememerpuS remeM
mmm
e e e
r r r
p p p
u u u
S S S

r r r
e e e
m m m
e e e
M M M
>>
>>52028609
kill yourself
>>
>>52028717
>>52028720
please make "CAN'T STUMP THE TRUMP" one
>>
>reading/watching weebshit
kill yourselves
>>
>>52028738
>don't reply to my posts again
You're one of THOSE fags. My, you're such a special snowflake aren't you? I think you might fit in better on tumblr or reddit.
Please put on a tripcode so I can filter you, or just fuck off with your fag threads.
>>
>>52028720
>>52028717
>>52028653


code in c# pls, i just started learning and i'd like to see how you do this in optimal way
>>
Why do people use visual studio? It's so disgusting.
>>
>>52028749
C                  C                  C
A A A
N N N
T T T

S S S
T T T
U U U
M M M
P P P

T T T
H H H
E E E

T T T
R R R
U U U
MMM
CANT STUMP THE TRUMPMURT EHT PMUTS TNAC
MMM
U U U
R R R
T T T

E E E
H H H
T T T

P P P
M M M
U U U
T T T
S S S

T T T
N N N
A A A
C C C


>>52028758
>being an anime-only secondary
>thinks his opinions are worth jack shit
haha

>>52028767
it's C tho
>>
>>52028769
VS would be one of the best software ever it weren't starting for like 0 years when you first start it. Other than that it's magnificent
>>
>>52028769
Why do people use x language? It's so disgusting.
Why do people like x music? It's so disgusting.

VS is predi comfy.
>>
>>52028787
>it's C tho

post code?
>>
>>52028787
ohh that's nice

thanks anon
>>
>>52028787
>Being a "I read the source-material" smug mangafag
>Not realising that most manga suck, just like most anime
>Thinking that your degenerate opinions are worth jack shit
>>
>>52028801

why not just fucking figure it out yourself. how far are you going to get if you have to take shortcuts?
>>
>>52028820
how do you make a central point?
>>
File: howtosteelfood.webm (456 KB, 320x320) Image search: [Google]
howtosteelfood.webm
456 KB, 320x320
Ask your beloved programming literate anything.
>>
>>52028852

do you have a cat?
>>
>>52028852
Why haven't you killed you'reself, you attention whore?
>>
File: ;D.png (57 KB, 800x334) Image search: [Google]
;D.png
57 KB, 800x334
Haven't been on /dpt/ in a month or so, are people still shilling D?

If not, why not?
>>
>>52028838

go through the output line by line and reverse engineer it. what do you need to do on a line-by-line basis to create that output?
>>
>>52028801
It's really not that difficult.
Just take the length of the word and add that many spaces between every letter and subtract one for every line until that distance becomes zero.
For the middle, just print out the string and then the string in reverse minus the final character.
For the bottom, just do the top part, in reverse.

>>52028811
again
>being an anime-only secondary
>he thinks his opinions are worth anything
go ahead and keep embarrassing yourself
you're basically admitting that you have the attention span of a gnat and you're too stupid to read through 6 volumes of a manga.
>>
File: Doma.Umaru.full.1901931.jpg (737 KB, 852x957) Image search: [Google]
Doma.Umaru.full.1901931.jpg
737 KB, 852x957
>>52028858
yes

>>52028859
>you attention whore?
>attention whore
>anonymous

>Why haven't you killed you'reself
please, don't bully.
>>
>>52028769
It's slightly easier to use than MonoDevelop and it has less annoying shit out-of-the-box (apart from the ridiculous bloat and the forced registration)
I personally switched to MonoDevelop over a month ago but already had to write 2 AddIns to make it useable
>>
Daily reminder, in the industry no one cares if you can write a function in one line. The only thing that matters is 1) if it works and 2) its readability for future maintenance.

If you don't make your code readable, then you aren't getting the job. Period.
>>
>>52028820
star("kek");
"
kekek
kekek
kekek
kekek
kekek
"


How close am I senpai?
>>
>>52028898
>catering to incompetence
>caring about "the industry"
>>
>>52028767
sorry, mine was in haskell and I don't know C# all that well
>>
>>52028898
I don't understand why you would bring this up.
People ITT are too stupid and not clever enough to play code golf.
>>
>>52028874
When did I say that I haven't read any mangos? I just said that I didn't read your shitty fag manga, because I'm not a degenerate.
I was just saying that stupid smug mangofags such as yourself need to realise that most manga is shit.

>>52028878
Making a bunch of very-similar posts is still attention whoring, even if you don't have a name/trip.
>>
>>52028898

ternary operator
>>
>>52028787
yeah, but is there any character that is like space (invisible) that still acts as a place holder in order for it to work with non code tags
>>
>>52028911
also probably not optimal
>>
>>52028906
./star "kek"
k k k
eee
kekek
eee
k k k
>>
>>52028916
How do you know it's the same person ? i can tell you it's not.
>>
>>52028916
yeah, that's great senpai
everyone cares what you have to say and you're a real credit to the board
where would we be without your sage advice
>>
>>52028898
Are you one of those fags who thinks
if (conditional == true) {
return true;
} else if (conditional == false) {
return false;
} else {
throw new RuntimeException();
}

is better than
return conditional;

?
>>
>>52028921
underscore?
>>
>>52028945
>invisible
also, r8 my code
import System.Environment
import Data.Char

main = do
(a : _) <- getArgs
putStrLn . map toUpper $ a
function (tail a) 0

function [] _ = putStrLn []
function (s:l) p = do
putChar . toUpper $ s
putStr . concat $ replicate p " "
putStrLn [toUpper s]
function l (p + 1)
>>
>>52028944
The latter is more readable than the former, so no.

The only reason I bring this up is because I work on large scale code bases all the time and it really bugs me when a developer thinks they're being cute and makes something more complex than it needs to be with no documentation. I have to spend longer than I should trying to figure out what the fuck he was trying to do.
>>
any other patters u guys can do?
>>
>>52028944
>mfw this code is deployed in one of our applications by a senior dev
>>
>>52028967
Maybe you're just not very good at programming.
>>
>>52028978
shots fired
>>
>>52028978
You've obviously never worked on code maintenance.

This isn't just me, it's a common complaint among everyone I've talked to who do similar work. Everyone complains about it, but no one tries to fix it. At least document your code ffs.

Hundreds of thousands of lines with no documentation is a pain in the ass to sift through.
>>
>>52029000
>Hundreds of thousands of lines with no documentation is a pain in the ass to sift through.
That has nothing to do with "clever code" though. That's just dealing with a complex system.
>>
>>52029000
>don't right snappy one liners
>because i hate walls of code
>>
>>52028924
star("top kek");
"
t t t
o o o
p p p

k k k
e ee
k kk


Christ.
>>
>>52029033
>>52029046
I think you two are missing the point.

A developer who writes unreadable code will still write unreadable code if they write one, ten, or a thousand lines of code. I'd rather have a million lines of readable code than a hundred thousand lines of unreadable snappy code.
>>
File: 1416883813748.png (360 KB, 900x720) Image search: [Google]
1416883813748.png
360 KB, 900x720
>>52029063
star("top kek");
"
t t t
o o o
p p p

k k k
eee
kkk
"


Think I'm getting somewhere.
>>
N    N    N
I I I
G G G
G G G
EEE
NIGGEREGGIN
EEE
G G G
G G G
I I I
N N N


    static boolean draw(final int x, final int y) {
return y == x || y == -x || y == 0 || x == 0;
}

public static void main(final String[] args) {
final char[] s = "NIGGER".toCharArray();

for(int y = -s.length + 1; y < s.length; ++y) {
for(int x = -s.length + 1; x < s.length; ++x) {
System.out.print(draw(x, y) ? s[s.length - Math.abs(x != 0 ? x : y) - 1] : ' ');
}
System.out.println();
}
}
>>
>>52029093
>java
>>
File: opengraph.png (14 KB, 500x500) Image search: [Google]
opengraph.png
14 KB, 500x500
>>52028609
>What are you working on, /g/?
Cryptocoin trading bot

I still can't believe it's been averaging $50 / day profit for over a month. This loop hole is so simple, it's unbelievable that no one else sees it.

Python 3, PostgreSQL, Apache Cassandra, running distributed over 6 virtual servers

Too bad I can't divulge the source code or it would become useless instantly. Maybe when it stops making money. It will be a sad day. It's better to never have loved at all than to have loved and lost.

If I had the muse to rewrite it, I would definitely use Java or another statically typed language.
>>
File: umaru EEEEEEEEEE.gif (1 MB, 500x395) Image search: [Google]
umaru EEEEEEEEEE.gif
1 MB, 500x395
>>52029093
>my C solution is literally 120 lines long
eheh~
>>
>>52029124
>Python
>if I rewrote it ... Java

What the fuck is wrong with you?
Get out
>>
>>52029134
>What the fuck is wrong with you?
I'm fine making free money. Thank you for your concern :^)
Now present a proper argument against Java.
>>
>>52029093
god damn, i started learning c# and java which is like 99% the same as c# looks here like arnold C for me
>>
File: uui9.png (481 KB, 626x988) Image search: [Google]
uui9.png
481 KB, 626x988
>>52029089
star("getting closer tbqh");
"
g g g
e e e
t t t
t t t
i i i
n n n
g g g

c c c
l l l
o o o
s s s
e e e
r r r

t t t
b b b
qqq
getting closer tbqhqbt resolc gnitteg"
>>
>>52029146
It's shit.
>>
>>52029157
this desu senpai
>>
>>52029157
In what way?
>>
>>52029124
Or rewrite it Go.
>>
Do I pass programming interviews now

# Make a collatz_number.txt file containing a huge number with:
# cat /dev/urandom | tr -dc [:digit:] | fold -w 50000 | head -n 1 > collatz_number.txt

import sys

with open('collatz_number.txt', 'r') as f:
large_number = int(f.readline().strip())

def collatz(n):
while n != 1:
if n % 2 == 0:
n = n // 2
else:
n = (n * 3) + 1

collatz(large_number)
>>
>>52029171
Yes, Go is an option.

But maybe Java just to spite /dpt/ with a money generating Java program :^)
>>
>>52029107
>autism

#include <stdio.h>
#include <math.h>
#include <string.h>

int draw(const int x, const int y)
{
return y == x || y == -x || y == 0 || x == 0;
}

int main(void)
{
const char *const s = "NIGGER";
const int slen = strlen(s);

for(int y = -slen + 1; y < slen; ++y) {
for(int x = -slen + 1; x < slen; ++x) {
putchar(draw(x, y) ? s[slen - abs(x != 0 ? x : y) - 1] : ' ');
}
fputs("\n", stdout);
}
}
>>
File: rob.pike.jpg (26 KB, 500x335) Image search: [Google]
rob.pike.jpg
26 KB, 500x335
>>52029195
If you're going with Java, also use the Spring framework. Aspies will kill you on sight.
>>
>>52029227
Yes, and Maven with its XML configuration. I actually unironically like Maven.
>>
>>52029203
what the fuck does this do?
>>
>>52029254
it draws meme stars
>>
>>52029254
same as >>52029093, prints meme star
>>
>meme star
>not of david

lol plz
>>
>>52029242
>look at pom.xml
>100 lines in and it still accomplishes nothing
>replace it with 3 lines of bash
>>
I've got the json.net lib, but I have no idea how to use it.

I want to generate local config files with defaults and then create a copy of that as usersettings.

I'm not sure how I'm meant to generate the defaults and plug it all in.

I'm so tempted to use the default settings object in .NET but it's a load of old shit when it comes to how it does settings, and I wouldn't be able to save my ObsCollection of a data object into it.
>>
>>52028609
Please stop this programming trap meme.
Thanks.
>>
>>52029149
star("i finally did it");
"
i i i

f f f
i i i
n n n
a a a
l l l
l l l
y y y

d d d
i i i
d d d

iii
i finally did iti did yllanif i
iii

d d d
i i i
d d d

y y y
l l l
l l l
a a a
n n n
i i i
f f f

i i i
>>
>>52029312
>star("i finally did it");
>not "i finally did it".star;
>>
>>52029328
>member functions
fuck off
>>
File: ew.png (272 KB, 470x624) Image search: [Google]
ew.png
272 KB, 470x624
String.prototype.repeat = function(n, str) {
var val;

if(n <= 0) {
return "";
}

if(str === undefined) {
str = "";
}

val = this + str;

for(var i = 1; i < n; i++) {
val += this + str;
}

return val.toString();
};

String.prototype.reverse = function(n) {
var val = "";

if(n === undefined) {
n = 0;
}

for(var i = 1 + n; i <= this.length; i++) {
val += this[this.length - i];
}

return val;
}

var star = function(str) {
var val = "\n"

for(var i = 0; i < str.length - 1; i++){
val += (" ".repeat(i) + ( str[i] + " ".repeat(str.length - (2 + i)) ).repeat(2) + str[i] + "\n");
}

val += str + str.reverse(1) + "\n";

for(var i = 2; i <= str.length; i++){
val += (" ".repeat(str.length - i) + ( str[str.length - i] + " ".repeat(i - 2) ).repeat(2) + str[str.length - i] + "\n");
}

return val;
}


r8 my meme star code
>>
File: Ilya.png (2 MB, 1000x2590) Image search: [Google]
Ilya.png
2 MB, 1000x2590
>>52029305
Please stop making new threads before the bump limit.
Thanks.
>>
Is there C++ but good?
>>
>>52029370
Is there Anonymous but no shitpost?
>>
>>52029370
better in terms of style? java

better in terms of performance? no
>>
>>52029370
rust
>>
>>52028695
Someone hasn't read Bokura no Hentai
>>
>>52029377
>better in terms of performance? no
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=rust&lang2=gpp
>>
>>52029392
i meant a language that a sensible person would actually use
>>
>>52029354
>val += (" ".repeat(str.length - i) + ( str[str.length - i] + " ".repeat(i - 2) ).repeat(2) + str[str.length - i] + "\n");

How am I supposed to read this?
>>
>>52029392
On that site on the same problem the implementation may vary depending on the language, some are even multithreaded while others may have really shitty implementation.
You should not just blindly look at the numbers.
>>
>>52029422
object oriented always finds a way!
>>
>meme star
>not meme spiral
                           emem
emasterm astermem
rmem emas
ste ter
ma mem
eme mememastermemem em
rm ster ast as
te ema mem erm t
as em master emaste em e
em rm eme rme ema rm
em e erm mastermemem me s em
m st st eme terme ast ma te e
er ma ma rm mas mema er st rm m
t e e e me st m er e as
s m em t e e em m m t
a me m s rm rm e e e e
m r r a et m m m r em
e e e m s sa me a em m
m t ts em am et a s m e
e s a em em mr ts et me m
m am me re emretameme mre r a a
r e me tsa s eme em ts s
e me mre mememretsam em re t
t mr tsa sam em re
sa ets meme emret em em
me am mretsamem am em
me eme ets am
mr mret memr ts
ets samememretsame mre
ame eme
mem sam
rets mret
ameme ameme
mretsamememrets
>>
>>52028609
after seeing this image posted so often i ended up buying a copy of K&R

i also have a copy of SICP lying around
guess how much of it I've read
>>
>>52028944
Mother fucker you just described the difference between a loop and a recursive function. One is software the other is hardware. Get over yourself.
>>
>>52029464
i'm assuming this works on the principle of drawing a spiral inside of a 2 dimensional array and then printing the whole thing to stdout like a bitmap?
>>
File: fibonacci_spiral.jpg (28 KB, 939x580) Image search: [Google]
fibonacci_spiral.jpg
28 KB, 939x580
>>52029464
That doesn't look very good, anon.

At least make it a meme Fibonacci spiral.
>>
>>52029476
      esYesYesY
esY esY
sY e es
Ye sYesYsYe Ye
s Ye sYesY s s
Ye s e esYe Y
s e Yse eYs e eY
e Ys seYsseY Ys s
Ys eY YseY se eY
eY seYs YseY Ys
se eYse se
Ys eY
eYse eYs
YseYseYseYs
>>
File: 1393438140456.jpg (179 KB, 1083x720) Image search: [Google]
1393438140456.jpg
179 KB, 1083x720
>>52029512
Looks too difficult.
>>
>>52029514
how do I draw spiral?
>>
>>52029542
x = cos(angle) * radius + offset
y = sin(angle) * radius + offset

decrease the radii in each iteration
>>
>>52029548
what's a cos and a sin?
>>
>>52029093
does this one work with spaces between the words? I'm trying to use args as the point of reference but when output the code it seems to blow up because of the spaces.
>>
Why do reputable /g/ computer science PhDs hate Java?
>>
>>52029562
Things from math
>>
>>52029617
yes, a space is just another character
>>
Does anyone know anything about Json.net?

I'm trying to serialize/deserialize an ObservableCollection<DataObject>, but I have literally no fuckin' idea how to do it.

                JsonSerializer serializer = new JsonSerializer();
serializer.NullValueHandling = NullValueHandling.Ignore;
using(StreamWriter sw = new StreamWriter(@"c:\json.txt"))
using(JsonWriter writer = new JsonTextWriter(sw))
{
serializer.Serialize(writer, SongList, ObservableCollection<Song>);

}

SongList = JsonConvert.DeserializeObject<Song>(@"C:\json.txt");

this is what I've currently got, but apparently I can't serialize to an observablecollection<song> because it's a type (which is fucking dumb because it's what it fucking asks for).

Does anyone have any idea at all? I can't seem to find anyone with the same issue.
>>
                                        

RREEGGINRRG
NNN EEE
NNE GG
NR EN
RI GENIGI EG
ER ENIN GERE RG
GG NGG NGI NE
RG GR EN GR
II NR RGEGRE IE R
N II GIG GIE I R
GN IG GI NRG GG GE
N N NG EG RE IR E
N EE R RGNENGRE IE I G
EN I GR RN EG G GG EG
N R R GN EGIG EI NI G G
I RE GN R GG IG ER E E I
I G I NN NNIRI NE I I RR N
I I G G I N GR G G R R G
G R E R E NEGR NN E E N
G G I GG N NRGN GG E I I
G N GG E RGG GG R R E I
G R G EN IIN RR I II G
GG G GI II RI GG E GG
G N GG GRRRNR NI GI G
GE GG RR NN N E
G N NGG NEG ER RR
GE G GGGERR EN N
I GR RR G
N GI GGE ER
EG REGR EIR IG
GI RGIRN ER
RE GI
IGG EE
NGII ENNR
NIIIIIIN



>>
>>52029724
    public static void main(final String[] args) {
final int size = 40;
final char[] s = "NIGGER".toCharArray();
final char[][] c = new char[size][size];

double alpha = 0.0;
double theta = 0.0;
int x;
int y;
int xPrev = Integer.MIN_VALUE;
int yPrev = Integer.MIN_VALUE;

int sIdx = 0;

for(int i = 0; i < size; ++i) {
for(int j = 0; j < size; ++j) {
c[i][j] = ' ';
}
}

while(true) {
x = (int) (Math.cos(theta) * (alpha * theta / (2.0 * Math.PI)));
y = (int) (Math.sin(theta) * (alpha * theta / (2.0 * Math.PI)));

if(Math.abs(x) >= size / 2 || Math.abs(y) >= size / 2) {
break;
}

if(x == xPrev || y == yPrev) {
continue;
}

c[size / 2 + y][size / 2 + x] = s[sIdx++ % s.length];;

alpha += 0.0005;
theta += 0.01;
}

for(final char[] line : c) {
for(final char ch : line) {
System.out.print(ch);
}
System.out.println();
}
}
>>
>>52029693
Have you tried using .ToArray<Song>()
I think JSON.NET will like that more
>>
Anybody have time for some code review?

from fractions import Fraction
binomemial = {} #memoize EVERYTHING
mem435 = {}
partmem = {}

def binomial(n, k):
if (n,k) not in binomemial:
binomemial[(n,k)] = factorial(n)/(factorial(k)*factorial(n-k))
return binomemial[(n,k)]
def A435(n):
if n not in mem435:
mem435[n] = sum(binomial(n,k)*((n-k)**(n-k))*(k**k) for k in range(1,n))/n
return mem435[n]

nums = [0]*50
def partitions(n,k,idx):#find partitions of n that don't include 1
if (n,k,idx) not in partmem:
if n == 0:
yield nums[:idx]
for i in xrange([k,n][k>n],1,-1):
nums[idx]=i
for j in partitions(n-i,i,idx+1):
partmem[(n,k,idx)] = j
yield partmem[(n,k,idx)]
else:
yield partmem[(n,k,idx)]

def combinations(n,partition):
total = 1
# [3,2,2] = binomial(7,3) * binomial(4,2) / (the number of times each number occurs)!
for i in partition[:-1]:
total *= binomial(n,i)
n -= i
for i in set(partition):
total /= factorial(partition.count(i))
return total

def answer(n):
numerator = 0
for i in partitions(n,n,0):
c = 1
for j in i:
c *= A435(j)
numerator += i[0] * combinations(n,i) * c
#denominator is the same as the number of permutations of n-1 elements in n positions
return str(Fraction(numerator,(n-1)**n))
>>
>>52029693
http://www.newtonsoft.com/json/help/html/SerializationGuide.htm#Lists
In the documentation it says it only accepts IList, IEnumerable, IList<T>, Array or objects that inherits one of those. ObservableCollection inherits from none of those.
>>
>>52028787
how'd you get it work with spaces?
>>
You have ten seconds to explain why you're not using Pascal.
>>
>>52029724
                                
DEX
IFD
EX
IF
XIFDEX DE
IFDE IFD X
EX EX IF
IFD IF DE
X D X
E EXIFDE E I
FD IFD XI XI FD
I EX FD F E
EX D EX EX D X
D IF IFDIFD I EX I
F X X I E F I F
I E E XF X D DF D
X D D EDFI E E E
E F F IX X X
D I IX DF FI FI
F X EDFIXE D D
IX ED XE E
E FI FI IX
DF XE XED DF
IX DFIXEDFI E
E IX
DF DF
IX XE
EDF DFI
IXED FIXE
FIXED



    public static void main(final String[] args) {
final int size = 32;
final char[] s = "FIXED".toCharArray();
final char[][] c = new char[size][size];

double alpha = 0.0;
double theta = 0.0;

int sIdx = 0;

for(int i = 0; i < size; ++i) {
for(int j = 0; j < size; ++j) {
c[i][j] = ' ';
}
}

while(true) {
final int x = (int) (Math.cos(theta) * (alpha * theta / (2.0 * Math.PI)));
final int y = (int) (Math.sin(theta) * (alpha * theta / (2.0 * Math.PI)));

alpha += 0.001;
theta += 0.01;

if(Math.abs(x) >= size / 2 || Math.abs(y) >= size / 2) {
break;
}

if(c[size / 2 - y][size / 2 + x] != ' ') {
continue;
}

c[size / 2 - y][size / 2 + x] = s[sIdx++ % s.length];
}

for(final char[] line : c) {
for(final char ch : line) {
System.out.print(ch);
}
System.out.println();
}
}
>>
>>52029828
Deprecated.
>>
>>52029617
concatenate the args into one string
>>
>>52028632
def triangle(n):
return '\n'.join([(' ' * ((2*n - i) // 2) + '*' * i + ' ' * ((2*n - i) // 2)) for i in range(1, 2*n, 2)])


Am I a programmer now?
>>
>>52029767
No comments what all methods do and why there are those variables outside of methods
I wouldn't even bother reading your code
>>
                          ARIPSHUMLARI                            
IPSHUML PSHUML
MLAR ARIP
PSHU SHU
ARI ARIPSHUMLAR MLA
ML SHUML IPSHU RI
HU RIP MLA PS
PS LA SHUMLAR RIP HU
RI HUM LARIP IPSHU SH ML
LA PS HUM MLA UM A
M RI PS SHUMLARI RI LA RI
U LA I RIP PSH PS R P
H M R LA HUMLAR UM H IP S
S U A UM PS UMPI AL MU HS H
P H L HS IRA HS IR AL U U
I S M PI LMUHSP IR LM LM L
R PI U RAL HSP RA RA A
AL RA HSP MUHSPIRALMU PI I IR
M LM IRA HS SP SP
U UH LMUH ALMU UH UH
HS SPI SPIRALMUHSPIR ALM LM
PIR RAL PIR RA
AL MUHS MUHS SPI
MUH PIRALM SPIRAL MUH
SPI UHSPIRALMUH RAL
RAL HSPI
MUHS ALMU
PIRALM UHSPIR
UHSPIRALMUHSPIRALM
>>
File: tree.png (10 KB, 1504x472) Image search: [Google]
tree.png
10 KB, 1504x472
I wrote a script to draw trees for me.
>>
>>52029818
Is there any way to convert a list to an observablecollection?

I'm trying to bind the data to my UI but currently loading the users music library is far too slow, I'd rather only do it once and save it somehow.

If this isn't going to work is there any other way to do this?
>>
>>52029885
>binomial
obvious
>A435
calls oeis A000435
>partitions
commented
>combinations
determines the number of combinations possible given a permutation and N labelled items

>why there are those variables outside of methods
Have you ever heard of memoization? It wouldn't work if I emptied the dictionary every time I called a function.
>>
>>52028609
>What are you working on, /g/?
Messing with an astronautics simulator in python. Fixed a function for r, the distance of a spacecraft from the centre of a planet.

I read about the difference between geodetic and geocentric latitude so had to recall some trig to fix it...
>>
Java > Python
Objective fact.
Not even joking.
Not even Indian either.
>>
>>52030051
>Objective fact.
Evidence needed.
>>
>>52029853
Thanks for that. I ended up giving up on using the conditionals inside of the loop and just went with function too. I had the function in mind at first but didn't want to over complicate it, then realized that not using negatives might make it a bit more complicated than the former.

I'm having trouble figuring out how to spiral text simply.

I'm going to try to just make it like the math form.
>>
>>52029959
Shitty comments that look like they were written for the dev themselves instead of for someone new to the code. You should never assume things are obvious, just comment it.
>>
>>52029937
https://msdn.microsoft.com/en-us/library/ms653202(v=vs.110).aspx
You should really get better at reading documentation, m8
Here is what you're looking for, the constructor of ObservableCollection accepts a List as parameter.
>>
>>52029512
           EMEMEMEMEMEM                 
EMEM EME
MEM MEM
EME E
EM ME
EM EMEM MEM
M MEM EME
E EMEM
>>
>>52029937
What you can also use instead of dumping everything in an xml is an SQLite local database. Microsoft also approves of using this shit in your application, Nuget library is available and you can use LINQ
>>
>>52028653
Damn I love generators in Python

def yielder(x):
yield from x
yield from x[::-1][1:]

def star(s):
n = len(s)
m = 2*n - 1
array = [[' ' for _ in range(m)] for _ in range(m)]

def fill(col, row, x, y):
yi = yielder(s)
while 0 <= col < m and 0 <= row < m:
array[col][row] = yi.__next__()
col += x
row += y

coords = [(0, 0, 1, 1), (0, m - 1, 1, -1), (0, n - 1, 1, 0), (n - 1, 0, 0, 1)]
for c in coords:
fill(*c)

return '\n'.join(''.join(a) for a in array)
>>
>>52030051
More like Objective-C rofl xD
>>
>>52030109
It's a one off script written for a single purpose. The comments are only there at all to remind me what the hell I was thinking tomorrow.

You see, I was under the impression that I was showing this to people who would understand that a function named "binomial" that has the arguments n and k would probably be used to call the binomial function on n and k.

But instead I have you, a person who doesn't understand how memoization works, and passive-aggressively rates comments without bothering to look at function names and use their brain.

>>52029767

here's the problem that it solves, for anyone interested
http://stackoverflow.com/questions/28527891/google-interview-algorithm-puzzle-expected-size-of-the-largest-connected-compon?answertab=votes#tab-top
>>
>>52030109
>>52030211
If you have any questions about the content of the code, feel free to ask
>>
>>52030211
>It's a one off script written for a single purpose
Thanks for the excuse, that really voids my criticism.

>without bothering to look at function names and use their brain.
I shouldn't have to read your code to understand it.
>>
>>52029916
For a second, I thought your word was MISHPULIMARI or something to that effect.

Quite gracious.

You mind sharing some non code insights on getting it too look so nice?
>>
>>52030306
divide the y value by 2 because monospace characters are generally twice as tall as they are wide

increase the angle by a smaller increment in each iteration to get a more precise result, but don't overwrite previously drawn "pixels"
>>
>>52030301
So your idea of a good comment scheme is to rewrite the entire code in pseudocode.

Thanks, but no thanks, your review would likely be useless anyway.
>>
https://www.youtube.com/watch?v=PAAkCSZUG1c&feature=youtu.be&t=539
>>
>>52030345
OR you could calculate the gradient and do a single character cell jump ala euler.
>>
>>52030156
>yi.__next__()
next(yi)
>>
>>52030364
yep that ought to work but make sure to watch for when the spiral goes inbetween two characters so that you should draw two characters adjacent to each other, "perpendicular" to the spiral
>>
>>52030345
>>52030364
Thanks and thanks!
>>
â–’
>>
>>52030137
Can you make it go bigger?
>>
>>52030346
Oh, no, repeating what your code says in the comments is bad practice.
>>
What's the character count limit ?
>>
>>52030525
                                                      EMEMEMEMEMEMEME                                                                                 
EMEMEMEMEM MEMEMEMEM
EMEMEM EMEMEM
MEMEM EMEM
EMEME EMEM
EMEM EME
EMEM MEM
MEM EME
EME MEM
MEM EM
EME EM
MEM EME
ME M
EME EM
EM EM
EM E
EM ME
EM M
M E
ME M
ME MEMEMEM E
ME MEME EME M
ME ME ME ME
ME ME M ME
E E ME
EM M ME
M E ME
ME ME EME
E MEM MEM
M EME EME
E MEME MEMEM
M MEMEMEMEMEMEMEME
>>
>>52030564
2000

in a code tag you can replace every 4 spaces by tabs and it will convert the tabs back to spaces
>>
>>52030592
Nice.

Do the code tags themselves counts ?
>>
/g/ what is the easiest way to split a string with a delimiter in C/C++
>>
File: 1445120682610.png (78 KB, 249x250) Image search: [Google]
1445120682610.png
78 KB, 249x250
I have a Python question. I have a string which, when printed, results in several newlines.
However, when I get the string text, no "\n" can be found in it. However, it still does span upon multiple lines.

How do I break the said string into an array, with each line being a separate member of the array?
>>
>C++ 14
Does std::mutex::lock/unlock act as a global synchronization barrier (i.e. a fence)? Or do I still need to manually force a fence/use std::atomic within the critical section?
>>
>>52030712
Split on \r\n\m
>>
>>52030712
"abc\ndef".split()
>>
>>52030611
yes

you only need the opening tag and it will put everything that comes after it inside a code block
>>
>>52030712
I don't use Python but a general rule would be:

Traverse the array using a loop that collects characters from your string and whenever an element is less than or larger than the ascii range for your particular characters, add the elements you've collected so far into an appointed string.
string[] array
string line
string file
for i in file.length
if( file[i ] != '\n' )
line += file[i ]
else
array.add(line )
>>
File: shenki.jpg (30 KB, 358x409) Image search: [Google]
shenki.jpg
30 KB, 358x409
Merry christmas, /dpt/!

Anon who had the problem understanding classes here. Created a class for a little test of my knowledge. Am I doing well?

http://pastebin.com/XJmZG0sT

Also still didn't understand the concept of inherited classes. Like let's say I want to make a class "Player" that can use functions in my Sprite class or modified classes from that class, but also new classes and variables. How to I proceed?
>>
>>52030855
Also, don't forget to empty out your line variable so you don't accidentally stack your lines.
>>
>>52028898
Maybe one day people will listen.

Maybe one day they'll even understand.
>>
>>52030864
Your sprite class shouldn't be a class of its own, but rather be an interface. The Player is not just a Sprite, but has many more components. HumanPlayer and AIPlayer should derive from player because they are players.
>>
>>52028910
>Writing readable code is catering to incompetence

I can't remember the last time my boss asked me to "write something so clever there's a chance nobody else can fucking understand it"
>>
>>52030954
>Inheritance
>Not composition of components
Disgusting.
>>
>>52030567
just realized i used 1.618 instead of a more precise value of the golden ratio but it doesn't look much different. >>52030137 still looks the same
>>
>>52030973
Sprite itself does nothing. It merely describes what the class which implemented the interface can do.
>>
>>52030150
>SQLite local database

How'd I go about opening one up, dumping a bunch of data to it and binding it to the interface?

If I can't bind the data to the interface (at least in a read-only fashion) then it's pretty useless to me.
>>
>>52031003
I still stand by my point. You shouldn't be using inheritance when you could have a PlayerEntity which contains a "SpriteComponent"
>>
>>52031015
If you're using an ECS, yes.
>>
>>52031010
Nigger, you are fucking too retarded to use babbies first programming language (C#). Get out of here and come back when you've learned the basics.
>>
>>52030954
My thought process is that I made a sprite class containing the minimum of actions every sprite can have, whatever type they are. Of course I will made other classes depending on this one.

I'm still not at ease with interfaces, how should I approach this?
>>
>>52030864
Determine which class has functions that are exclusive to it.

A 'Player' can't necessarily fly, a 'Sprite' can. So, depending on the context you could decide to allow the Player class to fly and span out from 'Sprite' ( meaning you would make a Player class that could fit every character ) or you could make a Player class and extend it's functionality to that of the Sprite class.

Monk   Sprite
| |
| |
\ /
\ /
Player

OR

Player
| \
| \
Monk Sprite


I had something I wanted to say about this but I'm being too helpful already and I guess that's a bad thing on 4chan?
>>
>>52031033
I'm 90% done with my application you fuck, I just despise databinding and I haven't got the first clue about SQLite and it's ability to be bound directly to the interface.

I'm not asking how I'd do a fucking for loop to get files out of a folder, I'm asking specifically about SQLites ability to be bound directly to the UI before I go jamming it in my project and spending an hour or two getting to know it.
>>
>>52031010
You shouldn't try binding data directly to your data source anyway. You bind to models, not to repositories or DAOs or whatever
>>
File: 1449159697967.png (325 KB, 382x417) Image search: [Google]
1449159697967.png
325 KB, 382x417
How do I modify the HTML code which my browser displays when it connects to a website? I want it to be modified right as it loads, real time.
>>
>>52031062
binding directly*
>>
>>52031046
I misread. I thought you meant sprite as in spritesheet. But in your case sprite has coordinates and is able to draw itself.
Make sprite an abstract class and derive everything from it. I'd rename sprite to entity. Makes more sense tbqh senpai.
>>
Should I learn Go?
>>
>>52031070
i think you use some backend like java or php

try asking in >>>/g/wdg
>>
>>52031078
>>52031062
Well the thing is only going to be a set of 6 strings that I need to read, and my knowledge of MVVM is nonexistant, I was hoping I could get away with binding read-only directly to the table.
>>
>>52031050
Thanks a lot for your help, really appreciated! I think I prefer the first solution because it's how I approached the problem in the first place.
>>
>>52031098
no it doesn't have any real advantage over other languages, it's got syntax quirks because it caters to the compiler (as opposed to the developer), and apparently it won't even compile with an unused variable or function
>>
>>52031098
Go is pretty nice for concurrency
>>
>>52030954
Not him, but I'm making my own game, and my thought on the matter is that since the player isn't actually beyond the game and instead act on the meta-particulars of the game they are actually working in the background. That includes the AIPlayer. If my thinking is correct, not that it should be, then the Sprite would be the highest level and it would "think" to do something, that "thought" would get sent back to the background processes and it would get processed. Once processing is complete, the signal to move, attack, talk, etc. would get sent up to the Sprite so that it then acts.

I think maybe putting the interface above the Sprite would make for a few extra layers of complexity (lag ) between the player and the processor. For an RPG, I think either is fine but for the most part, I think, since the player is balancing the knowledge of the process and what's on screen, the player interface should exist between processor and screen rather than have it go processor -> screen -> player.

Just my thinking on it, especially if he's thinking of going 3d.
>>
>>52031100
I want to modify the HTML clientside, not serverside.

Here's an example:
When I run this program, and go to 4chan, it would modify the HTML code which my browser loads, and add a huge text which says "You're a faggot." on top of each page. This is just an example.
>>
>>52031098
Obviously.
Don't listen to nay sayers. They're either clinging onto ancient wizardry like C or use shit like Haskell.
>>
What should I do to move on from programming basics? I've messed around with various languages over the years but the only things I've done is really simple stuff. I've went into games a little but nothing serious (just mario clones/tile editors in python and some messing around with Java2d).
I'm not sure where to go to learn libraries or make applications and games. Should I just read a bunch of documentation or wikis?
>>
Merry Gnu/Christmas

Go vs Rust

Go
>>
>>52031146
Think of an application you want to build and build it.
Reading documentation and wikis for shit you don't use anyway, what is the point of that.
>>
>>52031160
Rust in pieces.
>>
>>52031146
Learn how to read other peoples code, find a project that interests you on Github, and read it.
>>
>>52031070
GreaseMonkey
>>
>>52031101
6 strings? You were talking about loading a whole music library?
>>
>>52031139
>>52031187
https://en.wikipedia.org/wiki/Greasemonkey

It's fun and sometimes even useful, to improve badly designed sites or automate things
>>
>>52031139
oh i see, then greasemonkey like anon said
>>
>>52031191
Yup, but I parse the information I want out and dump it into an object.

I just need a way to store the object locally and be able to bind it directly to the interface and write to it.
>>
>>52031223
So either keep the object around in memory (and regenerate it if your application is closed/killed) or dump it to disk.

Personally I'd dump it to a SQLlite/SQL compact databse, but if you don't know the first thing about databases and Entity Framework, dump it out to a file.
>>
>>52031132
You're right, the interface isn't really needed if everything's derived from Sprite.
I don't really follow you. What's a processor and what do you mean by background processes?
>>
>>52031232
I'm just worried about the time it'd take to load the data from a file back into the object, I'm sure I'll figure something out though, just use JSON and dump the thing I guess.
>>
>>52031252
Why the fuck do you care? You aren't doing this loading every frame, right? If your application takes an extra 100ms to startup no one will care (and it won't take that long).
>>
>>52031223
If you want to save such a small object, you might as well just make use of Object Serialization. This way you can just load in a object from storage when starting up your application and write to it. When done, write the object back into storage. This way you don't have to fuck around with any databases, xml or json shit.

I think there is also a flaw in your thinking. You don't bind your GUI to things that are saved in your storage, only to things directly loaded into the memory of the application.
>>
>>52031139
You could register a service worker, assuming you run a modern browser (chrome).
>>
>>52031266
Fair point, I was just comparing the amount of time it takes me to actually get the information out to how long it'd take to load.

The first run to pull the library data is at least 5-6 seconds for me with my large collection.

>>52031272
I'm a novice, I thought I was being smart by trying to "cut out the middle man" turns out that this was a stupid thing to think.
>>
>>52031168
>>52031185
I'll try them. I'm not really sure what I want to make but I guess once I figure something out a bunch of googling and looking at other peoples code will help me
>>
Day 24 was easy lads
from itertools import combinations
import sys

data=list(int(i) for i in open("Advent24.txt").read().split("\n"))
#part 1 is /3, part 2 is /4
perCom=sum(data)/3
found=False
minProd=sys.maxint**2

for i in range(len(data)):
if found:
break
for j in combinations(data,i):
if sum(j)==perCom:
found=True
minProd=min(minProd,reduce(lambda x,y:x*y,j))
continue

print minProd
>>
>>52031314
You could also dump your stuff in a git public repo and share that here.
>>
I've googled and read some things, and decided that I don't like any programming language at all, they're all shit.

Discuss.
>>
>>52031418
Maybe brainfuck is more your sort of thing.
>>
File: advent tree.jpg (129 KB, 705x657) Image search: [Google]
advent tree.jpg
129 KB, 705x657
>>52031330
pic related
>>
>>52031418
Then maybe programming just isn't for you.
>>
>>52031245
My point is actually that he shouldn't derive everything from sprite. That it should be derived from object/task then to player and then to sprite. This way he can implement sprite using the player abstract functions and not have to create quirks in the system that only apply to one or two particular characters, which can and will throttle the system if the characters aren't balanced. This only if the intent is to create a balanced and well performing game.

It should look like this:
virtual object -> abstract player -> character sprite

I mean that since it's a game, the presentation matters. And that since it's a game, the learning process is inherent and should eventually become "second nature". If you are constantly forcing the player to focus on some kind of external stimuli then they never really learn the game as it was designed and will probably become annoyed, bored and quit playing the game.

The processor is the engine. The game runs map, foreground, hud and the player interfaces with the game at the map level. He moves on the map, his position is made apparent in the foreground and actions/consequences are clarified in the hud. In throttling the engine by making calls start at the sprite level you are black boxing terminal locations and creating latency.
Kind of like playing on a HD tv versus playing on a CRT. The info is sent to the TV and then the TV still has to stretch the image ( process ) which creates lag between user input and what is shown on screen.
>>
>>52031418
Maybe you would be good at jobs where you pick up heavy things and put them down in a different location
>>
>>52031436
I liked Ada from what I've read about it, but there are no libraries for it.
>>
>>52031448
It's kind of my representation I imagined desu. Sprite isn't supposed to represent a player sprite, it's literally anything ( interface, map, text, characters ).

Maybe I should rename my class something like GenericObject, then it wouldn't have cause any confusion on the idea I made myself of how my game should work.
>>
>>52031575
Maybe you should make a class diagram and show the result here.
>>
>>52031507
that's because the Ada philosophy is "if i don't do it, someone else will, and they could get it wrong"

also
>i liked Ada
you sick fuck
>>
>>52031330
itertools is cheating anon
>>
File: generic hierarchy idea.jpg (43 KB, 800x600) Image search: [Google]
generic hierarchy idea.jpg
43 KB, 800x600
>>52031592
Basic idea of what I imagine right now. Of course this won't be the final result.
>>
>>52031649
your mom is cheating
>>
>>52031649
nigga like I said, python is cheating, I'm too far down the rabbit hole, all I can do is continue sinning, there is no redemption for me
>>
>>52028609
Studying AI to see if it interests me enough to continue. Wanting to do the AI problems on Hackerrank before I make a judgement.

Anyone got any books/materials to recommend?
>>
>>52028898
Actual good advice from someone who knows what they're talking about? Geez.

Yeah, learning to program isn't the same as knowing how to program well. It's hard to appreciate maintainability and readability of code when you've never seen a project that's getting worked on by 5k people.
>>
Aaah, fuck it, I'll just learn C++.
What's a good book that will teach me about the GOOD PARTS of C++?

I'm assuming there's no non-GC, low level, non-meme alternative to C++?
>>
>>52028898
Autist detected. Shortening your code is a testament to your understanding of the language at its deepest, the libraries available, and your ability to produce good working code quickly. No one's actually going to make shit unreadable to employers
>>
Which mechanical keyboard layout do you consider the best for programming? If you only had the choice between ISO and ANSI, which would you go for?
>>
>>52031788
You don't even need to go to that extreme, you can have the same problems with as few as 5 people.

I can't remember the last time I looked at code I wrote myself more than 12 months ago and didn't think "what idiot wrote this shit.... oh".
It's difficult for anyone to appreciate this if they haven't worked on the same project for more than two weeks.
>>
>>52031825
Rust.
Otherwise just google for C++ 11 or 14 tutorals. Not C++98. If you see new anywhere (other than just before an explanation as to why the above code was horrible), it's old and shit.
>>
        if (GLFW_VERSION_MAJOR != major) {
logger::Log(logger::Level::Error,
"GLFW major version \""s +
std::to_string(major) +
"\" is not the same than the version this application was compiled for \"" +
std::to_string(GLFW_VERSION_MAJOR) +
"\". You will almost certainly experience issues.");
} else if (minor < GLFW_VERSION_MINOR || (minor == GLFW_VERSION_MINOR && revision < GLFW_VERSION_REVISION)) {
logger::Log(logger::Level::Warning,
"GLFW version \""s +
std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision) +
"\" is lower than version \""
+ std::to_string(GLFW_VERSION_MAJOR) + "." + std::to_string(GLFW_VERSION_MINOR) + "." + std::to_string(GLFW_VERSION_REVISION) +
"\" that this application was compiled for. You may experience issues.");
}

Hurry for C++. How else could you get such awful code to work quick...
>>
>>52031829
>implying that knowing a language inside and out is all that matters
>>
>>52031857
>implying pumping short code is possible without extensive knowledge of libraries and algorithms
>>
test
>>
>>52031835
ISO, because it's an actual standard instead of a pretend one.
>>
>>52031881
Making things work at all is the first most important thing. We can fix the code later to make use of third party and first party libraries.
>>
>>52031881
>writing code that only I can understand is a clever thing to do
>>
>>52031930
>writing short code is something people do for their jobs
No it's for study and practice

>>52031917
And short code doesn't negate all that, it implies the code is working
>>
File: png.png (265 KB, 1920x1080) Image search: [Google]
png.png
265 KB, 1920x1080
>>52031146
>>52031314
Related to this but is it a good idea to just go through these suggestions if I can't think of anything to make? With almost all of them, I have no idea how id even attempt them
>>
>>52031945
>learning and practising bad habits is time well spent

But seriously, there are times when one liners are great.
Usually they're times when you wish what you wanted to do could be done on one line, but normal syntax doesn't work until you find a nice workaround.

However, most of the time people are just trying to cram two or more very different operations onto the same line, this is what is fucking stupid.
>>
>>52032019
>knowing your language and its functionality to the point of being able to write short code is bad habits
>>
>>52032040
Producing hardly or completely unreadable code is bad habits.
>>
>>52032040
Well if you want to get a job out of it, yes.
Or if you want to contribute to open source software then still yes.

If it's just your own code that nobody else is going to see then great, do what you like, just don't expect anyone to give a shit about it.
>>
>>52031418
Most sane people have come to the same conclusion, I'd say.
I'm trying out ocaml now because if it really gains parallelism as planned, I think it will end up being the sanest language around, even if it's still shit (case restriction based on object, non-uniform arithmetic syntax, overflows and underflows, no arbitrary unicode in names, no at least -*/ in names, etc.).

The only other option is to start writing your own language.
>>
>>52031845
s/new/malloc/
Thread replies: 255
Thread images: 30

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.