Better HN
topnewbestaskshowjobs
Log inSign up

binary132

1,656 karma · joined Mar 24, 2014 (12y ago) · 1,717 submissions

Submissions

comment 2y ago · link · parent

Duh, just alias clang to a script that replaces its debug option and invokes clang, but only for the files you want

comment 2y ago · link · parent

$64K isn’t even one developer’s salary.

comment 2y ago · link · parent

Quantized Llama 3.1 can run on an Amazon GPU instance for $32/hr now

comment 2y ago · link · parent

I particularly liked the point that not every TU needs to be compiled in debug mode. I am working on a build system and now I’m thinking of setting aside some time to make sure debug and optimization is an object level option. In general, I think the usefulness of a well specified ABI over object code is vastly underappreciated!

comment 2y ago · link · parent

> How can it beat C

It doesn’t have the Lua to C interop overhead. You can obviously ameliorate that overhead by working on batches in C, but if you have a large and complicated dataset in Lua and need to iterate through it in C, the overhead is constantly additive so it’s certainly not just “the performance of C” when you step into C, necessarily.

If on the other hand you’re dropping into C to do something like decode a compressed stream, then the interop overhead is negligible compared to the work done in C. However, that interop overhead will be present wherever you put the boundary layer....

comment 2y ago · link · parent

Yes, it’s confusing because of the semantic overlap between push accepting an object reference and _the vector element type’s constructor_ accepting an object reference.

comment 2y ago · link · parent

No, the signature of push_back accepts an object reference, while the signature of emplace_back accepts _arguments to forward to the element type’s constructor_. That means that pushback expects you to construct the object, while emplaceback wants to construct the object internally. It’s just that there’s usually a move constructor that accepts an object rvalue reference, so that case looks like it resembles the pushback API, if that makes sense....

comment 2y ago · link · parent

>design patterns and code cleanliness aren’t “actual engineering concerns”

sigh

comment 2y ago · link · parent

Maybe like how having a handle back to something can be a parent-child relationship or can imply that the child owns the parent, especially if the lifetime is extended by the ownership (e.g. shared pointer).

comment 2y ago · link · parent

Shameless Google search clone

comment 2y ago · link · parent

This is good, but it really bothers me that so much research funding seems to be oriented towards click-generating headlines these days.

comment 2y ago · link · parent

It seems like maybe you’re assuming that state employees would be the ones building the required features, but I would guess these are simply going to be makework contracts going to (hopefully) local engineering firms.

comment 2y ago · link · parent

Nothing is as obvious as it could be when it’s 3am and you’re debugging a production outage. :)

comment 2y ago · link · parent

Shell is just one way. There’s nothing that says we can’t do better than shell, but what it’s good at is saving programmer time when the need isn’t there for more, and Rust is definitely not good at that.

comment 2y ago · link · parent

In our C++ stack at work we accept HTTP requests, and then spawn internal IO which takes some time. During that time, we yield the handler thread to handle other requests. The arrival of the internal response sets up the next step in the request handler to resume, which needs the response message.

This can be done manually by polling status of descriptors, and stepping into and out of callables / passed continuations by hand, or it can be done with a task scheduling API and typesafe chained async functions.

Pick your poison, I guess, but it probably scales better than using synchronous IO and thread-per-request.

comment 2y ago · link · parent

No, that’s what I was trying to understand (whether containment would be maintained in a catastrophic rail event) but I didn’t see it covered in the article.

comment 2y ago · link · parent

so “yes”?

comment 2y ago · link · parent

sorry if I misunderstood, but are you saying that it’s fine if this derails because nothing is going to break it?

comment 2y ago · link · parent

Other merits or demerits aside, doesn’t it seem obvious that if the state started distributing $3,600,000,000,000 of cash a year, it could possibly, just maybe, move the needle on inflation just a tiny wee bit? Has anyone ever addressed that challenge, or is it baked into the pie on purpose? If so, is this just a way to redistribute the allocation of assets? If so, why not just be honest and start the conversation there?

comment 2y ago · link · parent

I was surprised not to see any mention of derailing hazard. I really expected to see some kind of (possibly interesting or surprising) discussion of how this design solves it. Maybe I missed it?

comment 2y ago · link · parent

Maybe, but your neighbors won’t be cool about it

comment 2y ago · link · parent

“True” and “False” sound like two states. This is just one. :)

comment 2y ago · link · parent

You didn’t say “someone wants to live next to you”. You said “build a house”. Presumably, this includes a “house” that can hold 1000 people at low rent. If it doesn’t (since that would undeniably destroy your property value), then you’re willing to impose regulations on the pretty deregulated picture you’ve painted. If it does, then you’re not going to find that many people who own property agree with you.

comment 2y ago · link · parent

can you tell your neighbor not to have a loud party, burn garbage, or release toxic chemicals into the air?

comment 2y ago · link · parent

No walled garden seems to have walls high enough these days.

comment 2y ago · link · parent

I know, and that’s a major selling point for D in my book; iirc it’s what led me to explore D in the first place. Hardly any languages have good C++ interoperability. I was following Calypso with great interest for a while, but sadly it looks like the author lost momentum, so it never got exception handling for MSVC.

What I need to work reliably from C++ are 1. instantiation of imported templates, ideally including CRTP, and 2. handling in D of exceptions thrown from C++, because if I use a C++ library that throws, I need to be able to handle the exception.

So far I’ve found languages that can import template classes and functions from C++ (usually by extending LLVM/Clang), but no languages that have good, reliable cross-platform C++ exception handling.

comment 2y ago · link · parent

I guess what I’m saying is I don’t want the Internet to become a Top 25 radio station cranking out scam entertainment for the masses. I want “small pirate and indie radio” to be the norm. If you want top 25’s, go back to centralized, curated media.

The thing with the AI content boom is that if there’s 1000x more of it than there is genuine indie stations, it gets harder to find the real content. Piping things through a top25 filter doesn’t fix that, or actively makes it worse due to the incentives to monopolize / plan the system.

comment 2y ago · link · parent

Even HN has shills and bots, just not as obviously as some places.

comment 2y ago · link · parent

I would 100% be a D user if it had full C++ typesystem fluency.

comment 2y ago · link · parent

What makes you think only a foreign adversary might want illegitimate access to our computers?
1
414243
58