BinaryByter
KDE stands for Kool Debugging Editor
BinaryByter
the spelling mistake is on purpose
Ибраги́м
perl6 can run with jvm
Aren't u concerned about RAM prices
BinaryByter
Aren't u concerned about RAM prices
i paid 200€ for my 16 gigs :/
Ибраги́м
i paid 200€ for my 16 gigs :/
Imagine JVM takes 10gb
BinaryByter
Imagine JVM takes 10gb
i need to imagine that?
Daniele°
Aren't u concerned about RAM prices
One loc of perl6 are equivalent to 350 loc of C++
Daniele°
You Need to pay
Ибраги́м
Ибраги́м
Hehe
joel
why do people use STD:: instead of just using standard namespace?
olli
why do people use STD:: instead of just using standard namespace?
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
BinaryByter
why do people use STD:: instead of just using standard namespace?
google that, they can explain it better than most of us can
BinaryByter
xD
Ибраги́м
Bahd guy
Daniele°
Print hello in for with one different thread for iteration
BinaryByter
One loc on perl6
i know that perl is powerful - but its not expressive - not clean and not giving you too much control
joel
I could just use find and replace
Ибраги́м
You not know perl6
Isn't Perl a meme now
BinaryByter
i'm not hating on perl
Daniele°
what?
start ten thread than printing hello world
BinaryByter
start ten thread than printing hello world
well sure - threading is kind of a weak spot of C++
BinaryByter
but its still very doable in 6 loc
olli
start ten thread than printing hello world
how does this take 350 lines in c++?
BinaryByter
maybe
Daniele°
BinaryByter
gosh
olli
One loc of perl6 are equivalent to 350 loc of C++
just referring to this. But yeah sure..
olli
Try
printing hello world from 10 Threads? o.O
BinaryByter
Try
no, instead, try doing it in 350 LoC in C++
BinaryByter
😂
Daniele°
just referring to this. But yeah sure..
for 1 .. 10 { start { say "hello"}}
BinaryByter
for 1 .. 10 { start { say "hello"}}
now, try doing it in 350 lines in C++
BinaryByter
i'll wait
BinaryByter
oh btw: you aren'T allowed to do stupid coder mistakes
BinaryByter
you have to use the std::library
Daniele°
for 1 .. 10 { start { say "hello"}}
(1..10).map: start { say "hello"}
BinaryByter
(1..10).map: start { say "hello"}
are you implying that this is readable?
BinaryByter
lol
olli
(1..10).map: start { say "hello"}
Cannot resolve caller map(Range: Promise); none of these signatures match: ($: Hash \h, *%_) (\SELF: █; :$label, :$item, *%_) in block <unit> at /tmp/284799430/main.pl6 line 1
joel
hm c
olli
(1..10).map(start{say "hello"})
===SORRY!=== Error while compiling /tmp/295777541/main.pl6 Whitespace required after keyword 'start' at /tmp/295777541/main.pl6:1 ------> (1..10).map(start<HERE>{say "hello"})
joel
for 1 .. 10 { start { say "hello"}}
is this the perl syntax? what the fuck
BinaryByter
Mihail
That's a first
BinaryByter
IKR ?
olli
(1..10).map(start{say "hello"})
seerms to be really easy... in that time I would have written 700 line sin C++
joel
people actually use perl?
Daniele°
olli
who writes the same in C ++?
Since you did not add any more specifications #include <thread> #include <array> int main() { std::array<std::thread, 10> threads; for (int i = 0; i < 10; ++i) threads[i] = std::thread([](){ std::printf("Hello World\n"); }); for (int i = 0; i < 10; ++i) threads[i].join(); }
Daniele°
1:8
Daniele°
For simple case
olli
1:8
my code works. :)
Daniele°
😂
BinaryByter
actually, if you JUST want to reduce the line count do #include <thread> #include <array> int main() {for (int i = 0; i < 10; ++i) new std::thread([](){ std::printf("Hello World\n"); });}
BinaryByter
1:8
1:3 with two includes 😉
Daniele°
Errors: /tmp/ccoRYOs3.o: In function `main': source.cpp:(.text.startup+0xbc): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status Tip: Mistake? Edit your message, I'll adjust my response.
Daniele°
No, not work
BinaryByter
No, not work
yes, very work