/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: 1559638496569.png (702x897, 422K)

Other urls found in this thread:

github.com/vlang/v/issues/287
thehindubusinessline.com/info-tech/95-engineers-in-india-unfit-for-software-development-jobs-study/article9652211.ece
neovim.io/
wiki.dlang.org/Build_D_for_Android
twitter.com/NSFWRedditGif

First fot Java.

what language do I use for my wasm bideo gam

Attached: 1550954454966.jpg (4082x2873, 1.59M)

ASM.

Where did I hear that Apple is going to ban electron on MacOS? Is it true?

install Elm

just use Unity dood

no, it's not a complicated game

I don't normally defend apple shit, but it would be great if they did that.
Just like how apple kick-started the death of flash.

Attached: 1559771073981.jpg (800x1000, 187K)

I like OCaml but it has no libs and multicore is shit. Haskell is too autistic. Scala is not fun.

Any alternatives?

Cute chovy!

why do you need wasm then? just use js for that

I want to practice and see how it works

Well, the smartest guy on my Linkedin uses these.

Attached: skills.png (597x688, 28K)

idea: haskell, but very impure
map : mut Array Int -> (Int -> Int) -> ()
map xs f =
for mut x in xs
x = f x

I have chosen Lisp as my first language!

Attached: Kurosawa_Ruby_Holding_SICP.jpg (1280x720, 176K)

You might like erlang/elixir if you don't mind dynamic types.
It's still pure but you can easily rebind variables to new values.

Dude... really?

Attached: 1560330687729.png (384x390, 320K)

Go back to work, Rajeesh

>It's still pure but you can easily rebind variables to new values.
what?

ocaml

elixir doesn't have assignment, merely pattern matching.

b-but muh Jane Street!

...

The v language guy says he's finally releasing it tomorrow.
Do you think it will actually happen?
github.com/vlang/v/issues/287

Attached: thinking about butt hurt.png (267x300, 84K)

Elm translates to javascript, not wasm.

ocaml is really nice, I just wish the syntax wasn't as noisy as it is

i think so, also is there an issue for the json decoder/encode example not working?
If not make one pls, thanks.

I recently got back in touch with my 86 yr old grandfather, a really good programmer. Of course he doesn't code in newer languages, no, he has to code in a 30 year old data-centric language known as Visual FoxPro. It only works in Win 7 and below, but he is getting ready to send me around 30 GB of basedkaf related to his life, which includes his Visual Foxpro programs. This language is really convulted and obviously not really for anything than database management, but he has created a lot of cool programs (such as 3D Tic Tac Toe, a moon phase tracker and more).

I am looking to continue his work and the language is starting to grow on me. He expects his demise to come soon, so I am probably going to be the last Visual FoxPro programmer after that.

don't care, wasm is not worth using right now.

nice blog

OP literally says "What are you working on, Jow Forums?"
Thats what im working on

>Visual FoxPro
nice M$ shit

Goyim can't into language design.

Attached: Jean_Ichbiah.jpg (500x605, 40K)

I started programming in FoxPro and later Visual FoxPro. It's pretty based.

It is. The ease you can create graphics is pretty wild.

>cs program
>only white, fluent english speaker in it
the west is doomed.

how to get started with SPARK subset of Ada on GNU/Linux? i dont want to use the icky GPS application

Attached: 1560746227049.jpg (827x1169, 396K)

>writing in a language created by a kike
Write in Forth, homos.

pls show werkng cod bb
thehindubusinessline.com/info-tech/95-engineers-in-india-unfit-for-software-development-jobs-study/article9652211.ece

new programmer doing c++ now instead of python but it takes me forever to get things going and how should i format code?

int main()
{
while (check == false)
{
check = true;
for (int j = 0; j < A.size()-1; ++j)
{
if (A[j+1] < A[j]) {
int key = A[j+1];
A[j+1] = A[j];
A[j] = key;
check = false;
}
}
}

for (int i: A) {
cout

maybe if you post it a few thousand more times someone will listen to you

With clang-format

Give Pharo a try instead, it's pretty neat.

>is theer anyway to print a vector like [2,2,4,8,10] instead of iterating over each element?
use a good language
[2,2,4,8,10].writeln;

make a function for it

yeah, like haskell

idris*

std::vector vec { 2,2,4,8,10 };
std::for_each(vec.begin(), vec.end(), [](int a){ std::cout

>using newline brackets for anything other than a function or class definition
fucking disgusting

template
std::ostream& operator

i dont understand your saying i need them brackets no?

Sepples is fucking disgusting

yes, in short, no.

Attached: pajeet.jpg (480x360, 10K)

Alternatively, add this to your program:

template
std::ostream& operator

Vim or VSCode?

Neovim

Why the fuck am I so shit

Do you have autism?

Any significant advantages over classic Vim?

Yes.
Don't we all?

thanks user. c++ is much different then python but i think i like it better for some reason.

>[2,2,4,8,10].writeln;
What language is this?

I wish to avoid it.

Attached: 1454622175430.jpg (572x322, 38K)

I don't. Probably.

But why user.
for each elem you can just do
[2,2,4,8,10].each!writeln;

cute!

I'm gonna be so mad if this v thing turns out to be a hoax.

Attached: xcompile_v_for_windows_in_mac.webm (1158x720, 1.99M)

decide for yourself
neovim.io/
But either way, neovim is compatible with pretty much anything in Vim.

Disgusting

Attached: >[2,2,4,8,10].each!writeln;.jpg (258x298, 23K)

but why

i miss D

curious, what error is given when the array element is not a 'printable' type?

then comeback lad

no mobile

>what error is given when the array element is not a 'printable' type?
I've never actually ran into that myself so not sure.
Give me an example you think might not work.

good
that said, D is still trash

It should be pointed out that while is a possibility, it will only work when T itself has a valid overload for (ostream

Is this real? The website promises awesome stuff, but I never heard about this before

wiki.dlang.org/Build_D_for_Android
?

It will work perfectly for his purposes. And when it stops he can post about and someone will explain further.

If D is not a shit language, then type error.

Compared to C#, D is a godsend
Useless for now. Look at kotlin and xamarin

any language that has a GC is equally shit and not worth considering any further

an array of closures (or structs that contain them), for example; I'm not familiar with D, so I'm not sure what the language can do

>Look at kotlin and xamarin
So you're going to sacrifice using a good language because it takes a bit more work?
sad lad, very sad.

>muh GC
Grow the fuck up

How about you grow up and realize there are better memory management abstractions

I'll wear a rainbow shirt and go for rust then.

void main()
{
int delegate() dg;
int a = 1;
int foo() { return a + 3; }
dg = &foo;
int i = dg(); // i is set to 10
[i,i,i].writeln; //[4,4,4]
}

yep, works fine

also disregard the first comment, don't use delegates much.

Are you retarded?

?

what the fuck is this garbage?

afaik, that's not an array of closures, you're filling 3 ints

sure, I'd expect that, I'm curious about the quality of the error message
for example in sepples:
int main()
{
auto x = [](){}; // outputs x: 1
// std::function x = [](){};
// outputs 600+ lines of template errors
std::cout

Jesus

He said array of closures, not integers.

I've never done mobile before. But my I'm trying to build an app for someone.
D should really focus on ecosystems.

As a language, D is very nice. But it lacks ecosystem, fated to be limited to the enthusiasts forever like many other good languages like Nim or Rust.

With concepts, it's just ~10 lines.

D programmers actually think this looks good.

Who cares anyway when the first line tells you the problem