Better HN
topnewbestaskshowjobs
Log inSign up

gpderetta

13,837 karma · joined Feb 28, 2014 (12y ago) · 7,766 submissions

Submissions

comment 1h ago · link · parent

C++ has been dying for as long as I have been programming professionally. I'm not holding my breath.

If anything, the concept of caring about the programming language something is implemented in might be dying.

comment 4h ago · link · parent

It is in fact not luck, but something that the platform compilers guarantee.

When writing c++, the ISO standard is only one of the many standards you might rely on.

comment 6d ago · link · parent

You are right, sorry, lost track or the thread.

comment 6d ago · link · parent

Opus 5.5 seems to be pretty good at elisp (at least as far as results go, I can't comment on the quality of the code).

comment 6d ago · link · parent

With guaranteed RVO you could do something like this (pseudo-C):

   struct FooBase { ... }
   fn make_foo_base(...) -> FooBase
   struct Foo { base : FooBase; ... }
   fn make_foo(args...) -> Foo {
      return { .base = make_foo_base(...), ... }
   }

comment 6d ago · link · parent

RVO helps, but it is not necessarily enough. Let's say you have a vector and you want to construct in-place an element with an arbitrary set of arguments.

In c++ this is solved[1] via 1) emplace_back 2) perfect forwarding 3) constructors having an homogeneous name and being selected via overload resolution.

In a language with RVO, it is not enough for 'make_foo' in 'push_back(make_foo(args...))' to guarantee zero copy, 'push_back(x)' must also be able to guarantee that its parameter x is somehow constructed in place.

In practice you need some form of lazy evaluation (call by name, or an explicit thunk or passing the function and parameters separately) or some form of macro expansion.

[1] it does comes with its own set of foot-bazookas of course.

comment 2w ago · link · parent

> My kids need to learn how to manage the technology

there is some value about this. Unlike heroin, at some point the kids will have to use technology and learn to manage it.

But there must be better ways than unfettered access during school hours.

comment 2w ago · link · parent

The VGA does look the best. Still it is impressive that the Amiga version looked that close while having only 1/8th of the colors. Great use of palettes and dithering, I wonder if halfbrite was used.

comment 2w ago · link · parent

quicksort worst case space bound is still O(logN) as you can tail call on the longest partition and need to maintain a stack only for the other one.

comment 3w ago · link · parent

The machine stops.

comment 3w ago · link · parent

A lot of post-cyberpunk hard sci-fi is about augmented posthumans mostly for this reason.

comment 1mo ago · link · parent

you might have an untrusted sandboxed workload that is not supposed to communicate externally handling secrets, and a different sandboxed workload able to communicate with the external world, not handling secrets.

comment 1mo ago · link · parent

I use claude-code.el plus monet.el, but I have since had claude extend it in many ways, including exposing executeCode through monet /ide support.

comment 1mo ago · link · parent

I'm using claude-code.el. What am I missing? (Aside from integration with other models of course).

I have used gptel a while ago which was great for completion-like workflow, but abandoned when I moved to more agentic stuff.

comment 1mo ago · link · parent

that's like asking linux to drop posix :D

comment 1mo ago · link · parent

90% of everything is crap; also Sturgeon might have been an hopeless optimist.

comment 1mo ago · link · parent

I've been using emacs everyday for the last 25ish years. Although I do read elisp and occasionally write some, I'm far from fluent. You do not need to know lisp to use emacs (although it is funny you didn't pickup some just by osmosis).

comment 1mo ago · link · parent

It is is unreal how I can ask claude, from within emacs, to implement an extension for me on the fly, inject it into the running process, have it observe the results, and quickly iterate to a working solution.

Claude, the ultimate REPL.

comment 1mo ago · link · parent

"Any famous quote is eventually attributed to Albert Einstein"

-- Albert Einstein

comment 1mo ago · link · parent

similarly for plastic bags.

comment 1mo ago · link · parent

to synthesize an entirely new thing you have to start form the big bang. Everything else is derivative.

comment 1mo ago · link · parent

... as long as they still care about what we want and what we like.

comment 1mo ago · link · parent

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

comment 1mo ago · link · parent

Interesting. I have read that collection but I completely forgot about this story.

Blindsight also has augmented humans whose reasoning is beyond baseline human understanding and there are dedicated people that are there to bridge the communication.

comment 1mo ago · link · parent

>Architecture problem. Do your programs normally saturate a 40 gig network pipe?

yes

comment 1mo ago · link · parent

> 90% of performance is I/O bound, whether it be the disk, the network or whatever

funny you say that, because to take advantage of the monstrous bandwidth offered by modern ethernet, OS bypass with the card DMAing directly in your process cache is a must. That reintroduces all the "fun" shared memory ordering issues, except trickier (you are talking with a PCI device, not just another core) and buggier.

Re disk, I'm sure someone will revive optane at some point, and we will be back with memory model issues in our disk I/O path.

The reality is that a programming language that claims to be usable for system programming must be able to deal with shared memory and provide a concurrent memory model.

comment 1mo ago · link · parent

For better or worse, our current hardware architectures present a shared memory interface for intercore communication. So if you want a non-toy CSP programing language you have to implement with a programming language that support shared memory concurrency (for the OS at the very least).

And of course any sufficiently complicated message passing program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of shared memory and coherency[1].

[1] Yes, the reverse is also true.

comment 1mo ago · link · parent

Because then they wouldn't have contracts in C++.

comment 1mo ago · link · parent

they are literally meant to be better asserts, that can be shown on a function declaration.
12345
259