|
Shaggar posted:c++ has the excuse of being ancient. the people working on scala should have known better that's academia for ya
|
# ¿ Jan 6, 2019 17:32 |
|
|
# ¿ Apr 27, 2024 18:23 |
|
at my first job as a git-toucher I somehow managed to get a merge conflict with myself
|
# ¿ Jan 6, 2019 21:17 |
|
at my first job people would tell junior developers that writing unit tests was unnecessary because the only way you can have a bug that the scala typechecker can't handle is if you have side effects, which are bad, so
|
# ¿ Jan 26, 2019 03:31 |
|
uncurable mlady posted:types dont guard against npe
|
# ¿ Jan 26, 2019 14:47 |
|
gonadic io posted:yeah but any of those could also be null (or exceptions)
|
# ¿ Jan 26, 2019 15:26 |
|
gonadic io posted:any interface that returns Option could also return a null. this is my issue with scala: you can put all the layers on top of it you like, but you're still hosed
|
# ¿ Jan 27, 2019 04:42 |
|
at $OLDJOB our build process took upwards of an hour and if you ran make with -j4 or greater the OS would start OOM killing linker processes, so you'd expect to do two passes (one with parallelism to build the object files and a second serial one for linking) to get the drat thing built
|
# ¿ Feb 7, 2019 18:40 |
|
yeah this doesn't sound like you have any real constraints, tech-wise, just so long as you can atomically-update the A->B and B->A mappings (if you can tolerate non-atomic updates your job is even easier). And, since your workloads are read-heavy you can do the ol "stick a cache in front of your DB" thing. What do you mean concretely when you say "minimal latency"? What's your expected RPS? What's your current k8s deployment like (if you're living across datacentres / AZs then choosing DB X over DB Y won't matter when your requests are bounded by speed of light between DCs)
|
# ¿ Mar 12, 2019 19:46 |
|
YOSPOS: A co-worker is on a tricycle screaming about microservices.
|
# ¿ Mar 21, 2019 04:31 |
|
who says inheritance is a bad idea
|
# ¿ Mar 27, 2019 02:52 |
|
good to see linux's font rendering is about as sharp as it was in 2003
|
# ¿ Apr 2, 2019 21:33 |
|
speaking of plangs, I spent my summer internship hacking on the compiler for literally the P language https://p-org.github.io/P/
|
# ¿ Sep 7, 2022 15:23 |
|
(as with all other plangs, nobody should use it)
|
# ¿ Sep 7, 2022 15:23 |
|
tracked down some simulation code similar to what I'm writing, and, in between a bunch of Python functions that don't return values but instead mutate `global`ed identifiers,code:
researchers, man
|
# ¿ Oct 17, 2022 14:22 |
|
on the topic of academic code from the last page, opened up a paper artifact and was presented with the following blessing ah yes, the unnamed definite-article floating point issue
|
# ¿ Oct 18, 2022 14:16 |
|
if the option is between C++ and rust being your new hot thing, just stick with C imho
|
# ¿ Oct 23, 2022 03:25 |
|
at the risk of making a shaggar-grade plang defence: if you've got more than a few gnarly places where you truly don't know what datatype's behind a pointer, there's probably some straightforward refactoring that you can do to make that better (edit: and, if one of your big concerns is C ABI compatibility, as theirs was, you're going to end up having void*s that you just gotta assume you're getting right across the language boundary anyway)
Dijkstracula fucked around with this message at 18:43 on Oct 23, 2022 |
# ¿ Oct 23, 2022 18:23 |
|
Xarn posted:I am sure that the people who wrote the code that ends up source of type-confusion bugs also knew what type was behind the pointer. hey just so long as you know whether it's something you're supposed to pass to `free()` you're half way there :vroll:
|
# ¿ Oct 23, 2022 20:57 |
|
PokeJoe posted:Types? They're good MrQueasy posted:Types are a pain unless you've got some of that sweet sweet Hindley-Millner action going on. did we ever have a type theory/fp megathread
|
# ¿ Oct 24, 2022 16:26 |
|
Deep Dish Fuckfest posted:seeing or writing a cast in c is just tuesday. a cast in c++, to me, is an indication that someone's cutting corners with either their design or implementation I guess each of our milages will vary here, but I feel like your description of C++ casting matches my experience writing production C. Short of casting to a `uint8_t *` to access byte-level representations of some more complex type, or "upcasting" to a particular "subtype" of a tagged union, seems like for most cases if you're blithly recasting values then something's likely askew in C, too? I'm not even sure it's a matter of implicit casting; even the presence of a `void *` suggests I should be thinking super-carefully about what I'm doing. Maybe it's different in embeddedland or something, ECEs thinking they know how to write a computer program heh
|
# ¿ Oct 24, 2022 17:31 |
|
I'm never happy, you know this rotor
|
# ¿ Oct 24, 2022 19:21 |
|
Sagacity posted:we did but the thread didn't allow io Nice!
|
# ¿ Oct 25, 2022 01:14 |
|
sb hermit posted:the joke flies past everyone's head. Apparently I was the only gen x that actually played the ultima series "ah sure assign this especially painful ticket to the guy who actually made it through the jumping puzzles in ultima 8" says me, the other Old on the team
|
# ¿ Oct 27, 2022 14:02 |
|
I've been sitting on my hands for pages trying to not post about mercurial being better, because I figured everyone would just assume I was shitposting
|
# ¿ Oct 31, 2022 00:33 |
|
rotor posted:same, but in a different way
|
# ¿ Oct 31, 2022 18:25 |
|
also what the heck happened to your av
|
# ¿ Oct 31, 2022 18:25 |
|
if you're working on more than one thing at a time it's nice to associate the issue/JIRA number with the change branch also strongly suggest the "prepend your name to each branch" convention almost as much as "name your branch something funny and semi-relevant to the change" convention
|
# ¿ Nov 1, 2022 00:56 |
|
Jabor posted:If a branch is on your machine, that means you're the one working on it, no? Why does the branch name need to include extra information to tell you that?
|
# ¿ Nov 1, 2022 04:43 |
|
all of yall got a lot of bees in your bonnets about naming things well instead of like `bug_fixes_2_final` as if you're backing up excel spreadsheets or something
|
# ¿ Nov 1, 2022 04:46 |
|
Achmed Jones posted:this is my hill! it was made for me!
|
# ¿ Nov 1, 2022 05:25 |
|
was gonna suggest ButtState but honestly yours was better
|
# ¿ Nov 1, 2022 22:26 |
|
sounds like some plangers itt haven't heard the good news about .ini for hipsters, toml
|
# ¿ Nov 14, 2022 14:55 |
|
the fact that you get xpath and xslt means xml is the right choice, sorry, shaggar is right
|
# ¿ Nov 14, 2022 19:24 |
|
awk owns, we should have an awk appreciation thread
|
# ¿ Nov 15, 2022 04:44 |
|
The C++ thread in SH/SC would know better, I'm sure, but I imagine for the major features like stripped-down concepts ("template constaints") and the new memory model, going to the published papers is likely a better resource. I know the "Concepts Lite" paper is fairly old but I'm fairly sure it's only now getting integrated into the actual standard, for instance. As for the memory model, I'm not actually sure what they settled on for c++20/23 but going to Viktor Vafeiadis' and Derek Dreyer's work in the space might be a good intro.
|
# ¿ Nov 24, 2022 19:23 |
|
nice, that looks good, ty for reporting back
|
# ¿ Nov 25, 2022 05:13 |
|
in my experience go is fine, so long as your team has exactly one overly-opinionated go fanboy who will take care of the worst parts of the language like migrating to the latest broken dependency management system on your behalf if you have zero such coworkers, buddy, strap in and learn what a vendor/ directory does, if you have two such coworkers, buddy, strap in and enjoy the constant thoughtleader-wannabe bikeshedding not too many sharp corners and the standard library's good, for most things the runtime performs "well enough", the built-in race detector and auto-formatter is "I can't believe no other languages ship with one of these"-levels of useful, your most "meets expectations"est plang coworker can pick it up without much effort, and the fanboys have mostly shut up about how "it's made by Google so you know it's good!!!" or moved onto Rust by now
|
# ¿ Nov 26, 2022 16:57 |
|
VSOKUL girl posted:iirc that you cannot take two types that have an identical field and then access that field on the generic object. all i really remember is there was something i wanted to write a single function for and was like "ah, generics!", but then go was like "no lol"
|
# ¿ Nov 26, 2022 18:35 |
|
TheFluff posted:but in golang properties are not part of interfaces and it doesn't have traits, so you simply cannot do it at all (I read VSOKUL girl's post as being about "constraining/wildcarding a type variable" more generally than what they'd likely meant)
|
# ¿ Nov 26, 2022 18:46 |
|
|
# ¿ Apr 27, 2024 18:23 |
|
Xarn posted:The race detector is a lot weaker than it looks at first glance.
|
# ¿ Nov 26, 2022 22:31 |