News for hackers. Stuff that matters.

lowq

I sure don't miss the footguns and raw boilerplate that is having a copy constructor, move constructor, copy assignment operator, move assignment operator, and destructor, per class.

Yes, you should avoid the manual memory management that necessitates writing them. But work with a team of developers fresh out of school and next thing you know your codebase will be brimming with this kind of busywork.

Re:First kiss dates back 21M years on Sunday November 23, 2025 @09:14AM (#46023715)
The internet is an amazing place.
Re:Everything Is Ghibli on Monday March 31, 2025 @09:36PM (#43541952)
"Whoever creates this stuff has no idea what pain is whatsoever."

I think it's clear that he is specifically responding to the the overall soullessness of the technique - to animate without a human understanding of what is being animated. But as others have pointed out this is well before modern AI image gen and I have been corrected in that aspect.

Re:Everything Is Ghibli on Monday March 31, 2025 @09:32PM (#43541927)
"Well, we would like to build a machine that can draw pictures like humans do"

"Would you?"

"Yes"

Awkward silence

From this I don't think it's difficult to extrapolate his feelings about modern AI image gen. But you are correct in that this is not a direct assessment. Appreciate the correction, thanks.

Re:Everything Is Ghibli on Monday March 31, 2025 @09:22PM (#43541871)
Guilty as charged. I don't think the leap was far but there was certainly a logical leap. Thanks for pointing that out.
Re:Everything Is Ghibli on Monday March 31, 2025 @08:13PM (#43541451)
Re:The Typeset of Wall·E (2018) on Thursday July 11, 2024 @08:02AM (#40935734)
Not to mention, 99^6 = 941,480,149,401 ≠ 99,000,000 (which TFA also quotes). But who's to say notation didn't degrade along with the rest of society? :^)
I hear you man. The fact that a `byte` in ROS's bootleg protobuf is actually signed, and `string` is ASCII-only means that if you want to send a file or binary blob you have to use a `uint8[]`, which of course C++ will turn into a `std::vector<uint8_t>`. Good luck turning that into a proper `std::string` without an extra copy. And don't get me started on the comically scattered documentation for any basic use case that only ChatGPT can seem to make sense of. Better yet, the complete insanity that is node parameters - ever heard of reading from a file? Can't believe anyone takes this seriously.

ZeroMQ, protobuf, and a little thought would go a long way at our org.

/rant

It's fantastic when embedding Lua in a self contained executable too! I have a routine that goes through and 'cdef's certain headers that were also #included at compile time. Super powerful extending a C program this way.
It doesn't run the preprocessor, so you have to expose constants as externs, for example. Things like `int32_t` still work, so it must just have built in support for standard types.
Re:Where Have All the Websites Gone? on Wednesday January 10, 2024 @02:26AM (#38937256)
I swear that IKEA filter writeup was on HN once upon a time. That or someone else's thorough analysis of the exact same appliance!
Utah's BAC limit is (infamously?) 0.05. A single drink will put you over, or so the rumors go.
Re:Talking with the Inventor of C++ on Sunday December 03, 2023 @12:46PM (#38509019)
As a fairly avid Rust user I can say I'm excited to hear that! Just playing a little devil's advocate for fun.

That said I was moderately upset by this Friday after carefully assembling a development container for a project at work. Guess I'll have to make something persistent somewhere if I don't want to twiddle my thumbs before each build.

Re:Talking with the Inventor of C++ on Sunday December 03, 2023 @02:55AM (#38505601)
Hang on just a sec

  Updating crates.io index
     Fetch [>                ] 0.12%
Re:The largest number representable in 64 bits on Monday November 27, 2023 @05:09PM (#38439122)
Let 0 correspond to zero, and 1 corresponded to Rayo's number. Crisis averted!
Re:Brightest flash ever disturbed Earth's atmosphere last year on Wednesday November 22, 2023 @07:19AM (#38378236)
For some reason I dkubt it
Re:Rob Pike's 5 Rules of Programming on Wednesday November 01, 2023 @02:19PM (#38102535)
One might say Electron's algorithmic constant is quite large..
Re:Rob Pike's 5 Rules of Programming on Wednesday November 01, 2023 @01:27PM (#38101646)
Agreed. I find that "smart objects" are much more difficult to make cohesive with one another. Punting your "smart" logic to a higher level is easier to understand, test, and change.
Sounds amazing! Did you implement congestion control per connection, and if so, which algorithms did you use? I can imagine that CC could really affect throughput at this scale.
Re:Always the Same Warning Signs on Thursday June 15, 2023 @02:57AM (#36337279)
If the probe was single ended (e.g. not a differential probe or handheld unit), you may have shorted something to ground without realizing it. Was a long time before I figured that one out.
Re:JavaScript State Machines and Statecharts on Sunday May 14, 2023 @10:52PM (#35943419)
That's a good one. I've been trying to find a source for: "If you try to write your own TCP, you'll end up with TCP, but slow."

Cannot for the life of me figure out where I read this.

I did not expect to find a fellow machine girl enjoyer today!

MG is all about the samples and the breakbeats. Definitely not the chords, haha. But I do wonder how that factors in to mixing.

Re:Ask HN: Why is the hunger for RAM never satisfied? on Sunday March 12, 2023 @01:21PM (#35122995)
Holy cow. I never considered this!

I guess it would also explain why the games I would write in 2011 on a netbook ran so smoothly on every other computer I tested them on, despite using the legacy OpenGL 1.1 API, etc. etc.

Re:Shells Are Two Things on Thursday February 09, 2023 @09:53PM (#34735069)
Anyway, I lol'd hard at "written by the devil." Thanks for the article.
Re:Shells Are Two Things on Thursday February 09, 2023 @01:51AM (#34720547)
As far as configure is concerned, I'd like to add that 16394 is close to 2^14, not 2^16.
Re:Agile isn’t about speed, it’s about direction on Sunday January 08, 2023 @09:30PM (#34306001)
In our process, we've been consistently told that a weight of 8 corresponds to a two week (10d) sprint, and that 80% of our time should be spent on scrum tasks. Then, if any developer closes more than 8 points in a sprint, we are told that we aren't estimating properly. They have all but equated 1 point to 1 day, but the scrum master consistently denies that weight corresponds to time.

I'm new to this. Are we agile?

Your comment reminded me of this handy chart regarding the developed world:

https://en.wikipedia.org/wiki/Gun_violence_in_the_United_Sta...

Re:Mojang to Require a Microsoft Account to Play Minecraft on Wednesday March 02, 2022 @12:20AM (#30524052)
I will always be nostalgic for 2011 Minecraft. Sandstone was cool, dogs were cool, pistons were cool, villagers not so much, IMHO. Less was more, man.
Re:Instagram Is Estimated to Be Worth More Than $100B on Tuesday June 26, 2018 @12:32PM (#17401992)
sigh One of these days.
Re:Instagram Is Estimated to Be Worth More Than $100B on Tuesday June 26, 2018 @11:25AM (#17401309)
Millennial here, deleted my account a few days ago.

Unlike most platforms, Instagram cuts strait to the most depressing part: pictures. I've had enough with social media, and I envy those who never created a Facebook.

Older »