Better HN
topnewbestaskshowjobs
Log inSign up

packetlost

5,415 karma · joined Jun 2, 2019 (7y ago) · 2,117 submissions

*nix and foss enthusiast

Viewpoints are my own and not the viewpoints of my employer.

noah@packetlost.dev

Submissions

comment 21h ago · link · parent

There's a very obvious solution to that: serious criminal penalties for using these systems in that way. You don't have to ban the technology to ban certain uses of the technology. This is exactly why whistleblower protection laws exist

comment 4d ago · link · parent

Quality has been niche since the invention of automation.

comment 4d ago · link · parent

> You seem to be saying the tractor will make their farm labor less valuable

It did, it lowered the price of the end product, so the scale needed to increase to make the same amount of revenue with the ultimate consequence of there being less farmers necessary to sustain the demand for their crops.

> they're saying that the tractor freeing them from the field allows them to move on to more valuable activities, like software development

Surely you see the issue with this reasoning. In aggregate it allows society to 'rebalance' where labor is deployed over generations of time, but at the individual level it just leaves people jobless and eventually poor.

> Of course that is conditional on "software devs, a highly educated workforce" being true. If it is true then "we" are well poised to leave software behind to jump on the next big opportunity, but I suspect it isn't actually true.

Or it results in a further shrinking of the middle class and dramatic increases in inequality.

The real question is at what point does software saturate the demand. I personally thought that the market was already heavily saturated before AI, which does not bode well for career software engineers.

comment 4d ago · link · parent

Yeah, it's incredibly bizarre that people are like "no we will get more valuable, see how much more we can do, we're more productive than ever!!!" when what's actually happening is the thing that you previously had a monopoly on (skilled software engineering) is vaporizing in front of you and the people writing paychecks haven't quite figured out how to value your role. It will leave a very large number of people behind entirely.

comment 5d ago · link · parent

It's less their judgement and more they don't actually know what you're asking for. They "guess".

comment 5d ago · link · parent

I don't think that's what is being said. The statement is more like 'any imperative program can be represented by a purely functional representation', which goes beyond simply modeling loops with tail call elimination.

comment 6d ago · link · parent

> Third one is when you learn that the behavior of any imperative language (down to the working of the microprocessor data paths) can be fully represented in a pure functional rewrite language (without destructive assignment / cell state changes).

Can you either expand on that one or link me to sources that do? I think I follow, but I'd like more info

8.

Digamma: A lightweight, JIT compiled Scheme for AI workflows(github.com ↗)

1 points · by packetlost · 1w ago · discuss

comment 1w ago · link · parent

I've seen Lisps used by contractors for small-team sized projects, but it's pretty rare. Clojure is probably the most popular Lisp in common use, but I think its popularity has been fading (unfortunately).

Both Scheme and CL suffer really badly from a lack of modernization primarily in their stdlibs (or equivalent SRFIs) that tend to make them poor choices for most new professional projects IMO. Great for side projects though. I really wish the next generation of Scheme would take a page from Clojure's book and rework all the SRFIs and bake in immutability as a core requirement.

comment 1w ago · link · parent

> It's actually a major nuisance because sometimes you do want to pass the signals through, e.g. to implement termination of all transitive children processes, process groups notwithstanding, so then you have to do it yourself.

Yes, I would prefer some form of structured concurrency or even just better defaults. Plan9 does it a bit better with rfork and having note groups be its own thing.

> The subshell way is somewhat more robust

Oh it totally is, just trying to illustrate that technically the subshell isn't necessary

comment 1w ago · link · parent

> The parentheses are absolutely crucial there for some reason, the { } won't give you pass-through of SIGINT.

This is a gross misunderstanding of what is going on (signals are never "passed through", the process is either in the same group or it isn't), but the real issue here is the confusing semantics of bash's job controls. I personally would have swapped the semantics of { command blocks } and ( subshells ) too, but bash is pushing 40 so maybe it made more sense then.

It will sorta behave properly if you disable job control or put it in a script:

    set +m
    {
        trap 'kill 0' SIGINT;
        for i in {1..$N}
        do
            whatever_command $i &
        done
        wait
    }
it might also kill your current shell too though. This really seems to boil down to not understanding the difference between { } and ( ) in bash.

comment 1w ago · link · parent

It's also worse because the procmacros are themselves Rust and get compiled with the same parameters as the overall build, so if you're running a debug build the procmacros are running as debug binaries.

comment 1w ago · link · parent

Also procmacros add quite a bit of overhead to builds

comment 1w ago · link · parent

Shor's algorithm is the quintessential example, but there are other algorithms (mostly graph algorithms) that are NP and hard would be very efficient on a quantum computer.

comment 1w ago · link · parent

It's better to think of QPUs as highly specialized coprocessors that do certain things really well. You would only every really use them for problems they're good at. Like ALU vs FPU vs GPU.

comment 2w ago · link · parent

> where they benchmark against glibc malloc and glibc is somewhere between 20-150x faster than their implementation

Where are you seeing that?

comment 2w ago · link · parent

Goose is a weird language. It uses a pile of pre-allocated datastacks, enforces lexical lifetimes for all data, and has first-class syntactic support for capped, growable, and shrinkable arrays. It also spits out a pile of C that gets all the optimization benefits of <insert C compiler of choices>.

Goose in particular excites me because I have done similar design work over the years.

comment 2w ago · link · parent

> Avoiding the heap ... will prevent you from working with substantial amounts of data

This isn't really true of Goose, it's avoiding 'the heap' in the C sense, not in the OS allocated pages of memory sense. One is a programming abstraction provided by the other, but GP is only talking about the programming abstraction. I have never encountered a program that couldn't have memory be explicitly tied to lexical scope, but it can result in less efficient use of it in some cases.

Goose is almost, but not exactly the "allocate all your stuff at the beginning" the programming language. It's honestly the most exciting language I've seen in quite some time.

comment 2w ago · link · parent

> But vendoring may also mean you took the 2% of the library you need and not the 98% which reduces the surface area for vulnerabilities

If you aren't using a library function you're not vulnerable to exploits in that code: unused but imported code is inert (possible usable as a gadget if you're vulnerable elsewhere, but at that point you're screwed anyways) and most compilers/runtimes completely eliminate it.

> you may update a package that was previously good and is now vulnerable (regressions, supply chain attacks)

There are better mitigations to this than not using a library.

You still completely ignore the license violations.

comment 2w ago · link · parent

Except when it's a license violation or in something that ends up having a security vulnerability.

comment 2w ago · link · parent

My favorite namespacing syntax is ironically Clojures. module/func or fully.qualified.module/func or just func if you explicitly import the symbol. I vastly prefer shallow namespacing (module/func) most of the time.

I write Rust mostly for my day job (and it's also my preferred language on the side these days), so I usually end up explicitly importing all the symbols I actually use because module::func is just additional noise in an already pretty verbose language and is what's considered 'idiomatic'.

I don't really get the issue with :: being the separator used here. It's slightly ugly, but it's visually distinct from . for field access, which I do appreciate.

comment 3w ago · link · parent

> Frankly, no company should be allowed to IPO without showing steady profit

This is directly counter to the original point of public markets at all

comment 3w ago · link · parent

I started mirroring as much of the core git repos I depend on to my NAS with systemd timers to update from remote, and post-receive hooks to mirror externally if I control the repo. This reminds me that I should expand those efforts

comment 3w ago · link · parent

No instrument gives you an infinite precision in which to encode information with or decode it back out (though in quantum systems the result quantizes to one of N possible states depending on the system, so this is moot). The other option is an infinite amount of time to continuously encode information, but practically decoherence becomes the limiting factor.

I don't have a formal education in QP so this comes from my engineering perspective of working on quantum computers.

comment 3w ago · link · parent

I just... don't agree. Every pitch in baseball is exciting and there are almost 300 thrown in an average game, even if most end up with no progress. Meanwhile I find "fragile equilibrium" games to be boring as hell to watch, there's hardly any progress being made! I don't want to watch an abstracted tug of war drawn out over 3 hours.

comment 3w ago · link · parent

It depends on if you have parens for (explicit) modules like some Lisps do.

comment 3w ago · link · parent

I find this to be completely the opposite of my recent experience. The games are fast and with much better, consistent payoff than other sports such as football and soccer. Progress is far more discrete and there's basically always something happening except during inning or player changes. I agree that there are a lot of games, but that's a feature: you don't have to pay attention to every game. Because of the discrete nature of progress and the number of games you can get meaningful statistics out of a single season. I say this as a relatively young person (<30) who only loosely follows other sports.

comment 3w ago · link · parent

I just started getting into baseball this year because of the Brewers stellar performance (I'm from Madison).

comment 4w ago · link · parent

That has to be a nightmare for parsers lol

comment 1mo ago · link · parent

> Rust will never replace C/C++ with regard to high performance computing.

I don't buy this. Rust is a lot easier to make more performant than C++ and doesn't really trail behind C in anything but .text size last time I looked. Considering you can easily write C-like Rust that ends up in the same LLVM stack as Clang (more or less) I just don't think this is true outside of some very specific contexts.

12345
71