|
leper khan posted:all this cpp talk is making me miss it. but we're all broken here, i think
|
# ? Dec 8, 2016 16:12 |
|
|
# ? Jun 12, 2024 11:49 |
|
holy poo poo hackbunny what the how do you do this i can't even parse anything, my eyes just slide off the page but at the same time, i think it's interesting. I think. Can't tell, dying
|
# ? Dec 8, 2016 17:01 |
|
Captain Foo posted:holy poo poo hackbunny what the how do you do this you'll be fine have another coffee
|
# ? Dec 8, 2016 17:28 |
|
leper khan posted:all this cpp talk is making me miss it. Probably, but you are not alone in this. Come back to the dark side.
|
# ? Dec 8, 2016 18:19 |
|
leper khan posted:you'll be fine have another coffee coffeemaker metaprogramming
|
# ? Dec 8, 2016 18:21 |
|
you don't need to reduce a 10k source file, that is quite reduced enough the line i actually care about as a compiler writer is "don't make me configure and run your goddamned build". preprocessed source and a command line, please
|
# ? Dec 8, 2016 19:15 |
|
Redmark posted:Coincidentally I've been trying to learn Rust by making a bignum thing specifically to implement Karatsuba. here's what I ended up with. I am doing the powers wrong and I know there's gotta be some way to split an integer without converting it to a string (i tried calculating them magnitude just by dividing by 10 until I got to zero but that seemed even dumber than converting to a string). code:
DONT THREAD ON ME fucked around with this message at 00:03 on Dec 9, 2016 |
# ? Dec 8, 2016 23:54 |
|
use the Mul trait see here for an example for a Rational type: https://z0ltan.wordpress.com/2016/10/17/implementing-a-rational-type-in-rust/
|
# ? Dec 9, 2016 00:08 |
|
i want to make a text roguelike game with a lisp maybe this lisp: because it is "the ultimate language"
|
# ? Dec 9, 2016 00:10 |
|
I started reading that book when the humble bundle had it, and it is really really badly written. Like, clojure may be good or bad, but that book is lovely
|
# ? Dec 9, 2016 00:13 |
|
I couldn't tell if it was just me being bad at Lisp-likes. It probably was, anyway.
|
# ? Dec 9, 2016 00:26 |
|
I couldn't even tell if it taught clojure well, it was just the smuggest loving book in existence
|
# ? Dec 9, 2016 00:37 |
|
MALE SHOEGAZE posted:now i'm gonna use rayon to parallelize it. will post results. also i'm aware that i will get torn to shreds for what is surely very bad code. code:
code:
gonadic io posted:use the Mul trait cool i'll take a look! DONT THREAD ON ME fucked around with this message at 01:20 on Dec 9, 2016 |
# ? Dec 9, 2016 01:16 |
|
Asymmetrikon posted:I couldn't even tell if it taught clojure well, it was just the smuggest loving book in existence I'm actually really curious to check this book now
|
# ? Dec 9, 2016 01:55 |
|
Ator posted:i want to make a text roguelike game with a lisp common lisp is a bit of a shaggy dog language but there is an excellent, free book that covers it well. i find it more enjoyable to write than clojure, but clojure is probably easier to get up and running with if for no other reason than its community isn't dead.
|
# ? Dec 9, 2016 03:05 |
|
Asymmetrikon posted:it was just the smuggest loving book in existence and they say clojure isn't a real lisp ...
|
# ? Dec 9, 2016 03:36 |
|
fritz posted:and they say clojure isn't a real lisp ... lol
|
# ? Dec 9, 2016 04:29 |
|
MALE SHOEGAZE posted:
Nice, I see about the same speedup factor from parallelizing it. Here's my version for comparison. It's my first crate so the code is probably even worse! I really appreciated how the program either worked first try or told you how it failed. The first time I tried bignum operations I got absolutely murdered by off-by-one errors and integer overflows. In Rust the only runtime bugs I got were due to my not understanding how to do simple long multiplication
|
# ? Dec 9, 2016 04:30 |
|
Redmark posted:Nice, I see about the same speedup factor from parallelizing it. Here's my version for comparison. It's my first crate so the code is probably even worse! you've inspired me to maybe do the rest of the bignum class from scratch. also, I laughed out loud when I saw that you chained the rayon call the same way I did.
|
# ? Dec 9, 2016 04:38 |
There really should be an obfuscated C++ contest. There's so much room for horrific poo poo with templates.
|
|
# ? Dec 9, 2016 06:00 |
|
VikingofRock posted:There really should be an obfuscated C++ contest. There's so much room for horrific poo poo with templates. Programming in C++ is an obfuscated C++ contest.
|
# ? Dec 9, 2016 06:42 |
|
VikingofRock posted:There really should be an obfuscated C++ contest. There's so much room for horrific poo poo with templates. This is what C++ deserves for accidentally being two languages.
|
# ? Dec 9, 2016 06:45 |
Beamed posted:This is what C++ deserves for accidentally being two languages. I mean hell, the first item in Effective C++ 3rd Edition is this: Scott Meyers posted:Item 1: View C++ as a federation of languages. Incidentally I cannot recommend that book enough to someone actually interested in trying to understand the behemoth that is C++. The book's biggest problem is that it pre-dates C++11, but his more recent book Effective Modern C++ is a good supplement to get you up to speed on those features.
|
|
# ? Dec 9, 2016 07:55 |
The second biggest issue with the book is Scott Meyers's dorky haircut:
|
|
# ? Dec 9, 2016 07:58 |
|
VikingofRock posted:I mean hell, the first item in Effective C++ 3rd Edition is this: I've only read Effective Modern C++, actually, exactly because I was worried about Effective C++ being outdated. Effective Modern C++ is nice too, but it's mostly a detailed explanation of C++11/14 features and the associated gotchas. I should check out Effective C++ too. quote:The second biggest issue with the book is Scott Meyers's dorky haircut Respect the haircut.
|
# ? Dec 9, 2016 09:25 |
|
VikingofRock posted:The second biggest issue with the book is Scott Meyers's dorky haircut: That guy owns
|
# ? Dec 9, 2016 09:27 |
|
i survived my c++ course and this thread has been very helpful and enlightening to read(at least the bits I understood). thanks goons
|
# ? Dec 9, 2016 19:15 |
|
VikingofRock posted:There really should be an obfuscated C++ contest. There's so much room for horrific poo poo with templates. The c++ version is getting The Grand C++ Error Explosion Competition tgceec.tumblr.com
|
# ? Dec 9, 2016 20:04 |
|
more like dICK posted:The c++ version is getting The Grand C++ Error Explosion Competition tgceec.tumblr.com this thread's template error fizzbuzz was pretty fanastic
|
# ? Dec 9, 2016 20:13 |
|
more like dICK posted:The c++ version is getting The Grand C++ Error Explosion Competition tgceec.tumblr.com ahahah quote:There were several interesting cheat attempts in this competition. For example did you know that in C++ digraph expansion happens after line continuation expansion? We sure did not.
|
# ? Dec 9, 2016 20:20 |
|
did you know? unions can't have base classes or be base classes? now you too know!
|
# ? Dec 9, 2016 20:28 |
|
hackbunny posted:did you know? unions can't have base classes or be base classes? now you too know! That honestly doesn't sound surprising.
|
# ? Dec 9, 2016 20:31 |
|
raminasi posted:ahahah lmao
|
# ? Dec 9, 2016 20:32 |
hackbunny posted:did you know? unions can't have base classes or be base classes? now you too know! Actually, unions tend to have their base be the middle class.
|
|
# ? Dec 9, 2016 20:41 |
|
so is the c# serial port class still poo poo garbage from a butt?
|
# ? Dec 9, 2016 21:48 |
|
VikingofRock posted:Actually, unions tend to have their base be the middle class.
|
# ? Dec 10, 2016 00:02 |
|
VikingofRock posted:Actually, unions tend to have their base be the middle class.
|
# ? Dec 10, 2016 00:04 |
|
VikingofRock posted:Actually, unions tend to have their base be the middle class.
|
# ? Dec 10, 2016 00:10 |
|
WINNINGHARD posted:That guy owns i was surprised to learn he was not involved with the c++ committee in any official capacity and that a lot of his professional work involved D, of all things. the guy is a c++ wizard he's retired from c++ now so i guess the language finally won
|
# ? Dec 10, 2016 00:14 |
|
|
# ? Jun 12, 2024 11:49 |
|
Dr Monkeysee posted:i was surprised to learn he was not involved with the c++ committee in any official capacity and that a lot of his professional work involved D, of all things. the guy is a c++ wizard He is really good at listening, but he is in no way a c++ wizard.
|
# ? Dec 10, 2016 09:34 |