/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1558389852253.png (760x540, 514K)

Other urls found in this thread:

lispworks.com/documentation/HyperSpec/Front
filonenko-mikhail.github.io/cltl2-doc/enpdf/cltl2.pdf
lispcookbook.github.io/cl-cookbook
github.com/clojurians-org/lisp-ebook/blob/master/ANSI Common LISP.pdf
stackoverflow.com/questions/tagged/common-lisp
shenlanguage.org/shenpaper.pdf
postgresql.org/docs/11/index.html
github.com/vlang/v
vlang.io/
twitter.com/NSFWRedditGif

first for anime

Let's all love Lain.

stop using javascript

Attached: 1114490544942.png (819x686, 793K)

start using WASM

>program crushes when calling push_back() on a vector
what?

fuck off Mika

add copy constructor where you allocate the memory and copy the content. Whenever you add a object in the the vector, a copy constructor will be called on the vector object. Here its a reason of crash.

user, how about we begin with your JavaScript lessons now, hm~ ?

Attached: 1561122787646.jpg (1600x1067, 211K)

is there an offline version of the intel intrinsics guide that's actually up to date

Delete your JavaScript development directory.

Attached: 1561157984562.jpg (1536x2048, 586K)

Man you faggots churn through these threads. Always being on /3/ has given me a fucked sense of thread time.

a challenger has appeared

Last thread was 2 retards having flame war.
It is still unusual to see it happen here since there is usually one retard spamming the thread.
This time their timezones or something overlapped.

>It is still unusual to see it happen here
are you new? i have flamewars here all the time

Post one of your 3D models user.

how do I find help online while programming in common lisp? The only good resource I know is 'practical common lisp'. it's hard to find answers on stackoverflow

#include
#include

int main(){
int n;
printf("Enter your limit: \n");
scanf("%d", &n);

bool arr[n];
for (int i = 0; i

FP cultists and cniles have been clashing for some time

you are one of those two retards then.

Yeah but this was very intense.
It takes dedication to sink a thread that fast.

lies
Haskell and C programmers are part of the ultimate alliance

That was probably the most civil flame war I've ever had on /dpt/, it wasn't even a flame war, you haven't seen anything

if you say so bud

Consult the hyperspec: lispworks.com/documentation/HyperSpec/Front
Consult CLtL2: filonenko-mikhail.github.io/cltl2-doc/enpdf/cltl2.pdf
Consult the Common Lisp Cookbook: lispcookbook.github.io/cl-cookbook
Consult ANSI Common Lisp: github.com/clojurians-org/lisp-ebook/blob/master/ANSI Common LISP.pdf
There are actually good CL programmers that will answer on SO, and search harder: stackoverflow.com/questions/tagged/common-lisp
Finally, the two best places if you absolutely cannot find anything are #lisp and #clschool on Freenode, both of which are very active.

thanks!

multithreading

Any good way of filtering 90% of the Jow Forums content that isn't programming related?

I need to start working on my wasm bideo game in C++

Attached: 1448723481958.png (700x720, 622K)

You mean your game in C++? If you use emscripten it's no different to writing it normally.

kek

filter subject
/^((?!dpt).)*$/;boards:g

I like lisp but I also like functional langs syntax. What do?

Attached: haneame_cos_1071014437740376064_20181207_211155_img2.jpg (1280x1919, 260K)

yes but I want to practice C++. And since it's a simple idea I'd like to use that chance to compile it to wasm

#include
#include
int main(){
int n,i,p,*arr;
puts("Enter your limit: ");
scanf("%d", &n);

arr = malloc(n*sizeof(int));
for (i = 0; i

>functional langs syntax
I take it you mean ML style syntax?
what about it exactly?

I hear FP fags like shen: shenlanguage.org/shenpaper.pdf

How minimalistic it is. Its much easier to refactor program written in haskell or elm compared to common lisp where you have to watch for the brackets

>a lisp dialect
gross

Recommend me books on SQL

go the library and select some

read this instead of a book
postgresql.org/docs/11/index.html

Blazor?

stop using haskell
start using f#

no jobs for them programs

why?

F# is the most pragmatic functional language
It also has access to the immense toolset of the CLR

Did anyone see the V lang release?
This is the world we live in now

>F# is the most pragmatic functional language
why?

because it does everything any other FP does and more thanks to having CLR on its side

>because it does everything any other FP does
- F# doesn't have dependent types like Idris does
- F# doesn't have higher kinded types like Haskell does
So what else does F# do better than other FP languages?

>what does F# do better than other FP language
(p)OOP

Scala has OOP too.
Not sure why you would praise an FP language for having OOP features though.

Is there a good free fortran90 to c, c++ converter? I have tried some but all I get is gibberish.

What do you mean with the last sentence?

we live in a society

>language that compiles to C
Why not just write C?

>v-lang.eu - Quality porn - sex photo
Maybe..?

>V lang
Looks like someone repainted Go.

which lisp is the most powerful?

Attached: 1558538650126.jpg (850x1202, 193K)

Scheme

Common Lisp

The difference is that F# has OCaml poop while Scala is a huge flaming poop island in the middle of an indian river.

mash'allah, I want to breed with satania so bad

Just look at the source code, you'll understand
I mean, theoretically something like Coffeescript for C would be nice. It has a lot of rough edges out of historical reasons that could be smoothed over, but this is definitely not it.
github.com/vlang/v
It's worse
Common Lisp for practical + powerful
Racket for elegant + powerful

I will when the web doesn't run on it.
Come on over to C L O J U RE

>no restarts
naaaah

It seems to ignore heap entirely. Like, you can't allocate anything on the heap at all, if you believe the documentation.

You convinced me. I'm convinced that F# users are too dumb to use Haskell, so they have to resort to a mediocre language.

>github.com/vlang/v
kek

Attached: 2019-06-22.png (705x1016, 82K)

It says as fast as C. Is this another meme language? The only software written in it is the compiler and helper shit from the author.

>Did anyone see the V lang release?
Looking through some parts and caught this. I also see the people in the issues saying they cannot compile the compiler. But I would need someone to point out the absolute hilarity of this release for me.

Type *int_typ = Table_find_type(&/* ? */ *p->table, interface_name);

Type *typ = Table_find_type(&/* ? */ *p->table, _typ);

What did you expect from gophers?

lmao, it does read a like russian shitware

And just below it.

Parser_log(&/* ? */ *p, _STR("check types got=\"%.*s\" exp=\"%.*s\" ",
got.len, got.str, expected.len, expected.str));

What is that question mark for

Ask medvednikov, although it appears he doesn't know either. Maybe it speeds up getting the address of the value whos value you just got from it's address?

I'm pretty sure I've seen some heap allocation.
>It says as fast as C
Well, it compiles to C :^)
Look at all the shit he promised on his site
vlang.io/
and then look back at what he actually delivered. Look at his "standard library" that is literally just calling C functions.

>rand.v
#include
// #include
fn seed() {
# time_t t;
# srand((unsigned) time(&t));
}

fn next(max int) int {
# return rand() % max;
return 0
}

what the hell am I looking at

>someone calls it malware
>another person says how when nothing works with it

Kek

I don't get it. The address of the dereferenced value of p->table?

Attached: 1558947709608.png (240x240, 19K)

Holy shit the classic rng return 0

Tell me more about this algorithm.

>java has an Optional
>you can't even use a primitive data type(the only non-nullable types) as a type parameter without boxing
>it throws NoSuchElementException instead of NullPointerException on access to value
>it has map, filter, and flatMap
>it is not even a fucking set
Holee fuk. Oracle is actually this retarded.

Attached: ashittsun.png (1920x1080, 500K)

how do I stop using meme languages?

kek

void os__unzip(string path, string out) {

#ifdef windows

char *s = "powershell.exe -nologo -noprofile -command \"& { Add-Type -A "
"'System.IO.Compression.FileSystem'; "
"[IO.Compression.ZipFile]::ExtractToDirectory('PATH', 'OUT'); }\" ";

string cmd = tos2("");

cmd = tos(s, strlen(s));

cmd = string_replace(cmd, tos2("PATH"), path);

cmd = string_replace(cmd, tos2("OUT"), out);

os__system(cmd);

;

#else

os__system(_STR("unzip -o -d \"%.*s\" \"%.*s\"", out.len, out.str, path.len,
path.str));

#endif
;
}

I use F# for a couple projects at work - most of the stuff we do is in C# so it being on the CLR is the only reason I'm able to use it. Sure it doesn't have dependent types or higher kinded types, but it's certainly the most practical functional language I've come across so far simply because it runs on the CLR.

Yikes

I don't get your complaint

Anime poster being retarded and not understanding fundamental basics of Java like boxing.

absolutely based

>github.com/vlang/v
It looks exactly like Go.

Yeah it's great. Lots of shitposts for me to tweet.

What if I don't have unzip?

Scala has higher kinded types and runs on the JVM. Therefore it's the 'most practical functional language' by your standards.

what would happen if I wanted to unzip a file named?
file"; rm -rf /* "

are you retarded?

Nyet

Attached: 1508721138231.jpg (592x592, 92K)

>V is a safe language
>almost everything is bound to C calls
This is worse than Rust.

It's not only pointless as all reference types are already optional but it is also designed like dogshit with a retarded exception name used for Collections and even more retarded member functions that work over collections.

>This is worse than Rust.
No shit, one is created by moz://a, who to give at least a little credit maintain firefox, versus a russian.

Attached: 687996.png (82x82, 11K)