PerilousApricot
banner
perilousapricot.bsky.social
PerilousApricot
@perilousapricot.bsky.social
beep boop
Too spooky when the "taking too long" ghosts came out though
September 15, 2024 at 2:45 AM
Nah yo'regood
February 10, 2024 at 7:16 AM
I'm thinking superbowl
January 8, 2024 at 12:47 AM
My high school teacher fiancée says they don't allow it, but in actuality the kids just cite the linked cite in Wikipedia
January 6, 2024 at 1:30 AM
Check out the middle 🚨🚨🚨
December 30, 2023 at 6:02 AM
Who's the author? (Dont want to give a click)
December 23, 2023 at 4:21 AM
And, to be clear, the text you're trying to show makes the point. Item 3 describes the "null pointer constant" NOT "null pointer", the subsequent sentence states that "*if* the null pointer constant is converted to a pointer type..." <emphasis mine>
December 21, 2023 at 9:38 PM
You're missing the point. "int x = 0" is not a null pointer. It is something that can be *converted* to a null pointer, if you cast it to (void *) (e.g. "(void *) x"), but x itself is an integer
December 21, 2023 at 9:30 PM
I had to write Java in anger just once for a plug-in to spark. Halfway through I realized that the generics system of Java was a complete hack but I was too pot deep to rewrite into scala (which I know nothing of). I just left that spark project instead
December 21, 2023 at 9:33 AM
I'm somewhat surprised that templates haven't made it into other languages (Java generics can EABOD).

The paper on the mojo language seems like they're on track to have a spiritual successor to templates and I'm into it
December 21, 2023 at 9:27 AM
There no integer with the null value, that's a big important thing about integers!
December 21, 2023 at 9:25 AM
A function that returns an integer with the value is retuning the integer "0", it's absolutely not returning null.
December 21, 2023 at 9:23 AM
There is no value of int that is a null, and the type matters
December 21, 2023 at 8:35 AM
With respect, no.

Int main() {
Return 0;
}

Does not mean you're returning NULL. The representation in memory is 0, but you are not returning a null pointer.
December 21, 2023 at 8:34 AM
Im in academia and one of the side things i do I run rstudio instances for people on campus... the things I've seen
December 21, 2023 at 6:25 AM
The nice thing is that each module is a separate translation unit, so you can feed Fortran data into a c++ module that then is shoved into a cuda kernel that then puts it back into c++ to be written to disk. Every module is complied separately so you don't have to change the world at once
December 21, 2023 at 6:10 AM
Our framework was (fortunately) developed by some very very smart people. It composes "modules" (shared libraries) together using python. The modules define their input/output structs, then the framework handles passing data into and out of the modules. The modules can be any language dialect
December 21, 2023 at 6:07 AM
Could be worse! I work on a physics experiment with ~20m LOC and we had to (for various reasons) move to multithreaded processing. It was "easy" enough to have the framework use TBB, but excising uses of shared state has been a 5 year effort. Fortunately we have all the important stuff ported...
December 21, 2023 at 5:55 AM
I love your tweets and have been a follower for years (if nothing else it helps me learn what MS shops do). I'm not sure what you're referring to, but as someone on the Linux side of things, c++11 is years and years back
December 21, 2023 at 5:46 AM
Me (old) whistfully remembering when c++11 was hopelessly modern :(
December 21, 2023 at 5:40 AM
(Void *) 0 is a special case, but it doesn't follow that 0 means "null"
December 21, 2023 at 5:30 AM
But this is fighting the wrong fight, the ABI requires an int back, and NULL isn't an integer. You can coerce a NULL (a pointer of some type) into an integer, but coercing a pointer to an integer is undefined behavior, and the compiler is free to poop on your bed if it wants
December 21, 2023 at 5:29 AM
As a person who does computing but not web-facing stuff -- getting an error message back is like 3 steps closer to getting in
December 21, 2023 at 4:35 AM
For some reason I see that there are 3 replies to your message but I can't see the other replies
December 16, 2023 at 8:27 PM