compuserved posted:it's easy to heap more poo poo onto the pile when R is already pretty bad to begin with ehh, ill dispute the masterpieces of code bit, also copy and paste because of the consistency hell
|
|
# ? Jul 21, 2017 22:15 |
|
|
# ? May 25, 2024 05:06 |
|
i deleted ~2500 lines of bad provisioning code over the past few days and now our cassandra cookbook is actually idempotent instead of being a special snowflake feels good
|
# ? Jul 21, 2017 22:43 |
|
idempotent is a cool word
|
# ? Jul 21, 2017 23:01 |
|
its really hard to say though
|
# ? Jul 21, 2017 23:02 |
akadajet posted:idempotent is a cool word an idempotent appurtenance
|
|
# ? Jul 21, 2017 23:04 |
|
pokeyman posted:you can drop the .init and just call the type name like a constructor directly if you want it even tidier oh ok cool anyway my goal here is to produce Motorola6502.framework and use it as the core of whatever else I want to emulate (and release it on github so i can have something to point to when people ask what my experience is with swift) my ios game, meanwhile, i'm going to submit for review tonight
|
# ? Jul 22, 2017 00:12 |
|
Sapozhnik posted:uint8_t *heap; now cut out the middleman and do it with a macro instead
|
# ? Jul 22, 2017 00:14 |
|
Luigi Thirty posted:oh ok cool that's cool as hell, luigi
|
# ? Jul 22, 2017 00:22 |
|
i've spent a few days loving around with writing a version of memcached in rust that uses capnproto for storage and transport and it suddenly occurred to me that making the cache aware of the protocol serves absolutely no purpose whatsoever.
|
# ? Jul 22, 2017 00:34 |
|
malloc is easy free is the hard part
|
# ? Jul 22, 2017 03:23 |
|
I guess tomorrow's adventure is figuring out how to bind CPUState.accumulator to an NSTextField so my 6502 debugger automatically updates when I click the Step Once button
|
# ? Jul 22, 2017 08:12 |
|
Sapozhnik posted:malloc is easy free is easier than a non-naive realloc implementation
|
# ? Jul 22, 2017 16:08 |
|
disassembler status: disassembles the instructions I support emulator status: supports 40 opcodes lol
|
# ? Jul 22, 2017 20:50 |
|
i feel like i finally solved the puzzle of C++ memory management: std::weak_ptr, everywhere, all the time. just don't assume the lock() method will throw an exception if the pointer is null. it doesn't.
|
# ? Jul 23, 2017 13:40 |
|
Fergus Mac Roich posted:i feel like i finally solved the puzzle of C++ memory management: std::weak_ptr, everywhere, all the time. i think you mean unique_ptr
|
# ? Jul 23, 2017 13:52 |
|
unique_ptr is miserly. shared_ptr and weak_ptr are in the spirit of giving. giving access to the objects which some other object owns, i mean. Fergus Mac Roich fucked around with this message at 14:15 on Jul 23, 2017 |
# ? Jul 23, 2017 14:13 |
https://github.com/raxod502/TerraFrame
|
|
# ? Jul 23, 2017 14:40 |
|
holy poo poo Like at what point do you realise that it's gotten away from you? And even then it'd be easy to insert some line breaks and un-global a few things
|
# ? Jul 23, 2017 14:53 |
|
gonadic io posted:holy poo poo everything #1 Open HarveyD opened this issue an hour ago · 1 comment Comments Assignees No one assigned Labels None yet Projects None yet Milestone No milestone 2 participants @HarveyD @wilhelmeek @HarveyD HarveyD commented an hour ago No description provided.
|
# ? Jul 23, 2017 14:55 |
|
apparently the original terraria is just as bad except in C# instead of java
|
# ? Jul 23, 2017 14:57 |
|
modding terraria was how i got into c# all i remember about the terraria source code is that the key to encrypt save games was something like h3yguy5
|
# ? Jul 23, 2017 15:10 |
|
gonadic io posted:everything #1 "Pull requests welcome"
|
# ? Jul 23, 2017 15:46 |
|
Fergus Mac Roich posted:just don't assume the lock() method will throw an exception if the pointer is null. it doesn't. it doesn't because a null shared pointer (what lock() returns) is legal, and because the lock and check idiom is if (auto ptr = weakptr.lock) { // ... which runs much faster than throwing and catching an exception
|
# ? Jul 23, 2017 18:19 |
|
im confused about how theyre able to speak competently about what went wrong while also having produced that monster
|
# ? Jul 23, 2017 18:38 |
|
i decided to contribute https://github.com/raxod502/TerraFrame/pull/4
|
# ? Jul 23, 2017 18:53 |
|
hackbunny posted:it doesn't because a null shared pointer (what lock() returns) is legal, and because the lock and check idiom is if (auto ptr = weakptr.lock) { // ... which runs much faster than throwing and catching an exception it hadn't occurred to me to declare the variable in the if statement like that. i still had to change all my locks to shared_ptr constructors though because i never expect to actually throw the exception in practice, so from my understanding that's the right way to go for performance. of course performance would be even better if i didnt construct the weak ptr at all and relied on my knowledge of how the program currently works to guarantee the memory wouldn't get deleted, but i get hives thinking about that. Fergus Mac Roich fucked around with this message at 19:41 on Jul 23, 2017 |
# ? Jul 23, 2017 19:37 |
|
MALE SHOEGAZE posted:im confused about how theyre able to speak competently about what went wrong while also having produced that monster you're telling us you were never a bad programmer? you're in the wrong thread friend.
|
# ? Jul 24, 2017 01:52 |
|
Maluco Marinero posted:you're telling us you were never a bad programmer? you're in the wrong thread friend. Or maybe he's dunning-krugered his way into the right one
|
# ? Jul 24, 2017 02:37 |
|
The only good code that exists is Quake 3 https://github.com/id-Software/Quake-III-Arena
|
# ? Jul 24, 2017 02:45 |
|
akadajet posted:The only good code that exists is Quake 3 https://github.com/id-Software/Quake-III-Arena/blob/master/code/renderer/tr_bsp.c#L155
|
# ? Jul 24, 2017 04:42 |
|
Maluco Marinero posted:you're telling us you were never a bad programmer? you're in the wrong thread friend. i didn't look closely but i didn't get a sense of a passage of time. it seemed like they coded it up and then turned around and said "look at this turd!"
|
# ? Jul 24, 2017 04:53 |
|
in other news i just specified a binary protocol for my lovely custom memcache and then implemented a streaming, multiplexed client to handle it. i don't even really understand what i've done. rust is cool. futures in rust are insanely hard compared to scala. holy poo poo.
|
# ? Jul 24, 2017 04:53 |
|
akadajet posted:The only good code that exists is Quake 3 i learned to program by modding quake, it was a good teacher
|
# ? Jul 24, 2017 05:50 |
|
here is the secret to programming: smoke weed until you're out of weed
|
# ? Jul 24, 2017 06:04 |
|
MALE SHOEGAZE posted:in other news i just specified a binary protocol for my lovely custom memcache and then implemented a streaming, multiplexed client to handle it. i don't even really understand what i've done. rust is cool. i used rust but not scala. whats the difference between their futures? i find futures confusing too myself (error handling )
|
# ? Jul 24, 2017 06:50 |
|
me 10 minutes ago: goddammit how am i going to decipher all these obsolete swift stackoverflow posts to figure out how to make this debugger instruction visible when we jump to another address me: oh wait code:
|
# ? Jul 24, 2017 07:49 |
|
goon project time: let's fix this game (but for serious, no joke "delete all code" contributions please) i'll make the wiki well i say that but i'm not actually going to do it.
|
# ? Jul 24, 2017 08:52 |
|
but i'm legit curious what improvements you could do using the refactoring tools in an ide and how much effort would it take.
|
# ? Jul 24, 2017 09:00 |
|
That could actually be excellent teaching material. "please don't do this" but also "at some point you will have to maintain code like this"
|
# ? Jul 24, 2017 09:42 |
|
|
# ? May 25, 2024 05:06 |
|
MALE SHOEGAZE posted:
Seconding that I'd like a trip report, I've used them a bunch in Scala but never rust
|
# ? Jul 24, 2017 10:53 |