Hacker Newsnew | past | comments | ask | show | jobs | submit | nly's commentslogin

Even Fable fails me on a regular basis, so I doubt it.

Does it really matter for ephemeral key exchange? For most thinks a few kilobytes of handshake is fine

System prompt: you're a human called Ralph answering support calls...

Little text to voice bridging using a model trained on the CEOs voice.

Sorted.


Not sorted: that would be precisely covered by this legislation, and would result in the business getting fined for non-compliance.

It's a Turing test isn't it

If you want to find out how useless people can be with money just watch one episode of Ramit Sethi's "Money for Couples" podcast.

People do far worst in their own bubbles of denial than forget a few subs


In the UK Monzo can export all transactions to Google Sheets on a continuous basis.

I've had success just asking Claude to analyse my spending with the stock Google office suite connector


Nothing your criticizing requires an ABI break

Inline namespaces mean all of those libraries could be replaced/improved in a binary compatible fashion.


Unfortunately it does, because some of them are exposed in C++ standard libraries used as dynamic libraries, and then you have vendors like Microsoft that since 2015 refuse to break ABI.

There are even C++ features not implemented in VC++, because they would break VC++ ABI in doing so.


C has most of the same problems raised in the article. You'll notice there's no "C SDK" on all those third party SDK lists either. There's no universal package manager for C. No standard library worth a damn.

My personal view is APIs and behaviours should be standardized, not libraries. In that respect C++s efforts to figure out universal async I/O is a noble one unmatched by other languages. And it's a hard problem.

That's not to say it hasn't gone off the rails. The Sender-Receiver model has never 'clicked' for me. I think the ideas is alien and overly abstract and I've never seen anything elegant fall out of it on a single page. Coroutines on the other hand make sense. The C++ language implementation of them is elegant and versatile.

std::execution is a verbose mess.

At my employer pretty much all of our code is C++ and threads aren't used anywhere. As a result, I/O tends to go through our own APIs written to use an Linux ioring backend behind C++ coroutines, which yield to our own main event loop.


I think C and C++ always have suffered from wanting to support all kinds of weird architectures like 9 bit bytes and 80286 style segmented memory. So many people see this as a virtue rather than restricting the usefulness of C.

So char always means "byte" and never a real character. I don't think many C programs will work well if char is a 32 bit type so it supports full unicode.

int8_t came way too late and has a way too long name. It should be i8 or int8. There is a problem when C is more verbose than Java. Also: why did it take so long to get a boolean type and fix the "bools are ints" design mistake.

Lack of standard libraries and module system is just another layer of not wanting to standardize things.


>I don't think many C programs will work well if char is a 32 bit type so it supports full unicode.

That's not really how unicode support works. It can be useful to have a specific type for storing unicode code points (like Go's 'rune' type), but strings are generally UTF-8 encoded these days, so having a wide char type plays at most a marginal role in a language's unicode support.


A char is not the same as the basic type that is used for encoding strings.

E.g. in Java a char is 16 bit while strings are encoded as 8 bit or 16 bit. (If the string only contains Latin1 chars, it will use 8 bit encoding to save memory).

The char type should be what you use while looking at a single decoded character (e.g. when parsing text files), not how you encode it in a string.


You’re mixing up characters and code points. But not even a single unicode code point can fit in 16 bits. Java’s char type and string encoding is a perfect example (with hindsight) of what not to do. Go’s “rune” type, that I mentioned, is more sensible. It holds a single Unicode code point, while strings are encoded as UTF-8 (so code points are encoded in variable numbers of bytes).

Kinda disagree here about the "elegantness", superficially it's an elegant abstraction to unify generator-like coroutines and "tasks".

In practice it's bad, a generator (co_yield) is often an encapsulated object that will have a non-deterministic lifetime, thus it cannot be put into a fifo.

"Tasks" however (co_await / co_return) often live on a stack-fifo that could've been mixed with partial bump-allocators to allow pointer-stability for the stack-frame (there is kind of the machinery via the new overloading for the promise), but due to varying lifetimes it easily becomes a mess (Looked at some other task library that seemingly had low allocations like this but it feels like the entire machinery can easily break with "careless" usage).

And I think that's a part of why std::execution feels like a mess, it tries to make coroutines in task settings more "usable" for those writing things around tasks, but it doesn't really decide on a coherent direction for tasks (since the language primitive was left too abstract/messy).


I'm not too familiar with generators. I've never really had much use for them. I've used co_yield once successfully to interleave two separate tree recursions in lock-step and I don't remember any issues.

It's also not at clear to me why you'd want to put a generator into a fifo. Any succinct code snippets that demonstrate the issue?


Well LLVM supports HALO optimization can remove frame allocations when the coroutine lifetimes are suitably nested, though you need to apply some specific annotations to assert this is safe in a given context before it will kick in.

> there is kind of the machinery via the new overloading for the promise

Any details?


You can add an "new" operator to the promise type for the task holder type, some coroutine libraries mentions cactus stacks for low allocation and I'm pretty sure they're fiddled together some kind of arena allocation system for "soft-threads" via thread-locals and the promise operator new that becomes low or even more or less zero-allocation in practice (but at the time I was looking at it I bailed to a heap-heavy variation to get it stable).

See under the topic dynamic allocation, https://cppreference.com/cpp/language/coroutines


C++ coroutines are always heap-allocated, precisely because their lifetime is so hard to predict.

> C has most of the same problems raised in the article

Correct but I'd argue almost nobody builds desktop applications in C anymore and the places where C is the most common (embedded) they built full on frameworks including package managers around them.


No one does it, but I did do it recently and it was like a breath of fresh air being outside all these frameworks. Of course it brings problems that you don't have in a framework, too.

Perhaps people should write desktop applications in C more, as ones I use that are written in C are the applications I like most.

The one I know about has stuck around for 30 years, no one has been able to replace it. Many have tried, all failed. It’s just too big to fail.

I don't disagree that C is here to stay, I'm saying that C is in a different position than C++ where its shortcomings don't matter as much.

If you write any daemon that uses jsonrpc for example you immediately pull in 100k+ loc of dependencies just to get off the ground (json via nlohmann, a webserver, ser/de library possible etc) while for an embedded application a lot of projects itself are smaller than just the dependencies most C++ projects desktop have.

C++ competes with Rust. C doesn't.


We have developed coroutine-native networking for C++20, and designed it to become a de-facto standard. It has no external dependencies. It does not require Boost. https://corosio.org

> There's no universal package manager for C. No standard library worth a damn.

The package manager for C is whatever your distribution uses plus pkg-config. The standard library is the C standard stuff plus POSIX.


Yes. If you're going to be portable, wrap your code in a portable layer. Trying to fit everyone expectations is how you got a bloated environment.

I rather love C, Perl, Python with how easy it is to fit them in any context by manipulating flags and environment variables. It's way better than Go which you have to coerce to not go online and Node.js/npm with its complicated mechanism. People talk about conflict between projects, but system packages works fine before, and you can always use containers and vms to isolate two infrastructures. Also such conflicts is always brought up by the libraries developers who break API contracts happily.


Yea. I don't want a package manager for my programming languages. My OS has a perfectly good package manager, and when I use it to obtain software, I know I'm getting all dependencies and everything is integrated well into my existing system.

But then, if I want to develop something for Python, I need to reach for a totally different package manager that lives in its own universe and barely integrates with my existing package manager. Then, for Rust, same thing, totally different package manager, totally outside of my OS.

Having multiple package managers on a system is an anti-pattern as far as I'm concerned.


Which is why I usually joke that UNIX is the "C runtime".

I think you touched on the main issue but blew past it. There isn't a simple, universal package manager solution.

You can have all the standardization in the world but if you can't trivially swap one implementation for another then what's the point?

I also feel this is self fulfilling. If there's no simple way to pull in libraries then why worry about being compatible anyway? Every codebase has its own quirks and build setup and macros. Why not? There was no simple tool they broke by making those choices.


If you can swap out the implementation then that means you can't mess with the API.

I feel like this is really a commentary on how young rust is as a language that this issue hasn't been important yet. It takes a long time to realize an API is a mistake.

Note that I said API not ABI above. ABI is a different category of problem.


C shouldn’t suffer from these problems. It is just not a language to write massive projects with a ton of complex dependencies in.

C will make this obvious by stepping on your toes. C++ will help you along until it has enough leverage to break ‘em.


>There's no universal package manager for C. No standard library worth a damn.

There is, its called Linux kernel, along with whatever package manager used to download the headers and shared libraries.


Salting completely defeats rainbow tables.

And key stretching algorithms (and more modern fit for purpose password hashing functions) largely defeat brute force.


Yeah, no one uses rainbow tables anymore, except for some legacy Windows protocols which either lack the salt or you can control the salt (NTLMv1 for example).

Revolutionary products are rare because humans have relatively stable needs.

The vast majority of all innovation and engineering goes into iterative improvement.

I recently had Claude analyse a project for me. It eliminated a dozen bugs, closed down several DoS attacks, and made the code run 3x faster through benchmarking and iterating on algorithmic improvements. It even setup a fuzzing harness that can run random mutations under a set of config options, 24/7 in the cloud. All about a weeks work.

No manager would have authorised spending the amount of time it would have taken me to achieve all that myself.

AI means persuing iterative but diminishing returns is actually cheap


Yes, but your example is code. For this I agree - AI has became extremely powerful. It seems to simultaneously understand "the big picture" of a project, and find ways "to steadily grind" towards excellence. That's a killer combo.

But life sciences are not like that. There is non negligible part of work that happens in the "wet lab". Not sure how AI helps there. It could be suggesting to focus only on the most promising experiments, but I haven't heard success stories like that yet. Have you? (I'm genuinely curious, it's not a trick question).

My guess the same is true for material / hardware sciences where a lot simulations are needed (but that's outside my scope of expertise).

To repeat my main claim: AI prevails in heavily formalized settings (and yes, this includes programming). I don't know how it will "scale horizontally" to less formal domains.


A device to extract energy from quantum vacuum fluctuations would be handy, and it'd be great if it could feed an Alcubierre-White faster-than-light propulsion system.

Even a sublight reactionless drive would be extremely useful for space exploration.

Viable commercial-grade aneutronic fusion for power generation...

I use to say we don't have a drinking water problem - we have an energy problem. With abundant energy we can desalinate sea water by boiling it, which is much less efficient than reverse osmosis but, with abundant power, who cares?


Even the most powerful LLM can’t make pseudoscience work

Ok, then let's forget about the warp drive for now, but fusion clearly works in nature - so, how hard can it be?

Don't forget room temperature/pressure superconductors! And I bet magnetic monopoles would be handy if they exist.

Hear me out: time travel!

It's not human needs in general which drive new products, but rich and powerful people's wants. And their appetite for more control and security is boundless.

Ok, I recently had a conversation with ChatGPT where it couldn't figure out how to make Naan after looking at three recipes and failed to order the instructions correctly as well.

The idea that we're anywhere close to AGI while it fails to do things a fourth grader could do effectively is a funny joke.


>Revolutionary products are rare because humans have relatively stable needs.

They haven't made microsoft word suck any less in the 4 years or so this has been going on. The bar is pretty low!


> No manager would have authorised spending the amount of time it would have taken me to achieve all that myself

This is just as big of a detriment as AI is an advancement. The business never cares about tuning the software for maximum performance and security. If it makes money, you should stop wasting resources on it, full stop. The only reason you got to burn tokens for it is due to the hype train that everyone is falling for. AI enabled you to "launder" company funds to something that they never would have allowed originally. If you had burned the tokens and discovered nothing, that likely would have been allowed "because AI".

It's even more insulting: they don't trust _you_ to refactor and apply your skills and become a better engineer because that's not a good expenditure of company capital. But they trust sending that same money to Dario and friends because it will ultimately allow them to have a staff of less skilled engineers with junior salaries.


Spending a few hundred dollars in tokens + a day of dev time on these sort of backlog items rather than weeks and weeks of dev time seems like a bargain to me

That's a false dichotomy but okay

At one of my last employers we swapped our primary and secondary trading servers every Monday morning and each was rebuilt (fresh OS, redeploy) every month. This was all fully automated.

There were also spare servers, connected to switches, just sitting idle that were rotated in and out of the rotation.

When a single server being down can cost you tens of millions of $ a day you develop good recovery

This is without all the fancy cloud infra that makes it so easy to be resilient today


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: