Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 2y ago · link · parent

There is nothing unsafe about allocating more memory than necessary.

comment 2y ago · link · parent

> Saying that one isa is faster or more energy efficient is like saying that c++ syntax is faster than java syntax.

Which may be true, if we’re talking about compilation speed, although in this case the reverse is true.

comment 2y ago · link · parent

What length does a cyclical list have?

  (define l '(1 2 3))
  (set-cdr! (cddr l) l)

comment 2y ago · link · parent

I want to search the local computer, to launch an app, not search the internet.

comment 2y ago · link · parent

Except the speaker screams at you, very loud.

The best ones I’ve used are at Rossmann. Completely silent, and don’t measure the weight of anything, so you never get to the “sorry, your shopping’s weight is off by 1g” part. The UI is also very efficient, where in Carrefour they seem to periodically add more popups to the process.

comment 2y ago · link · parent

2: I thought wegfawefgawefg was talking about prenatal genetic alterations to normal children. I don’t think anyone would treat anyone differently based on that, similar to how noone treats IVF children differently - the things happening at that stage seem to only lead to judgemental treatment of parents, not children. And the parenting issue in this case doesn’t exist obviously, since it’s solved like for any other child.

comment 2y ago · link · parent

1. How is cloning going to lead to it?

2. I don’t see anything wrong with that. I would have preferred to be born without inheriting neurological disfunctions common in my family.

comment 2y ago · link · parent

But then it uses AVX instructions. (You can replace -march=znver1 with just -mavx.)

When AVX isn’t enabled, the std::min + std::max example still uses fewer instructions. Looks like a random register allocation failure.

comment 2y ago · link · parent

Rewriting from Python to anything else would make it faster.

comment 2y ago · link · parent

I wouldn’t call D simple. The list of features seems to be endless.

comment 2y ago · link · parent

I work based on a standard labour law contract remotely and I’m not compelled to fulfil any quota of days worked from office.

comment 2y ago · link · parent

Most of German job offers I’ve seen require proficiency in the German language. That’s unlike offers from Norway, Sweden, Denmark, or Israel, where you’re only required to speak English. Nothing else is ever even suggested in those offers. My sister works in Germany and says that while Germans are pretty easy to talk to in English on the street, in a shop etc., they’re reluctant to do so in a work context and she gets irritated looks when she only speaks at B1 level. Germany is pretty uniquely hostile to foreigners in that regard. I suspect that the requirement you’re speaking of is set up mainly to filter out those who don’t speak German very well.

comment 2y ago · link · parent

If you consider the serpent from the garden to be Satan, then the Bible. It gave humans knowledge after all while God forbade it.

This story has always reminded me of the story of Prometheus. Both were punished by gods for their gifts to humanity.

comment 2y ago · link · parent

Wouldn’t deleting posts of high-profile users be easily noticed and lead to Streisand effect? The article says it didn’t manage to verify the cited claims.

comment 2y ago · link · parent

> Iron Truth claims its tech industry back channels have led to the removal of roughly 1,000 posts tagged by its members as false, antisemitic, or “pro-terrorist” across platforms such as X, YouTube, and TikTok.

Does anyone know if that’s a lot? I don’t know either way. I just have a gut feeling that compared to the number of posts made by bots on any political matter it barely matters.

I wonder if it wouldn’t be more efficient to counter with more bots going in the other direction with likes and posts.

comment 2y ago · link · parent

(2013)

comment 2y ago · link · parent

You need to use sudo. I have SIP enabled and use DTrace regularly. Trust me, it works. (As long as you use it properly, i.e. not like an alias for strace the way you tried here.)

comment 2y ago · link · parent

SIP doesn’t block dtrace. You can use it just fine to e.g. trace dynamic library function calls.

What really is a problem on MacOS is that they stopped shipping kernel syscall symbols. So you can’t trace syscalls anymore in the default setup. I’ve read on some forum that you can download the symbols from some website and it works then, but didn’t bother with it at that point.

Ironically, despite DTrace originally being a Unix tool, I’ve had the most success using it on Windows. On Mac I can’t trace syscalls by default, on FreeBSD for some reason it didn’t notice that processes inside jails were opening files (despite DTrace running on the host)... On Windows on the other hand DTrace works perfectly for me.

comment 2y ago · link · parent

There is one joystick in the photo. It’s even labeled "JOYSTICK". :)

comment 2y ago · link · parent

> In my experience international train travel in Europe is always more expensive, sometimes 3-4 times more expensive, than airtravel.

Not necessarily. Look at this itinerary e.g.: <https://thesavvybackpacker.com/cheapest-travel-europe-train-...>. With a few exceptions, train was cheaper than the plane, often several times.

And now for what happens when it’s more expensive and inconvenient to be concerned about the environment: <https://www.thelocal.no/20230125/why-cross-country-flights-a...>

comment 2y ago · link · parent

Your second link also gives an alternative explanation of people being motivated economically, not environmentally. And quote from the first link:

> 91% say they want to replace short-distance flights by fast, low-polluting trains in collaboration with neighbouring countries

See how a train being fast was bundled into the question.

Let’s forget about environment for a moment. Going by plane is a lot less convenient, when you can take a train, due to needing to show up a lot earlier at the airport, going through security and all kinds of overhead. So when trains work, i.e. they’re fast, reliable and affordable, nobody needs environmental concerns to use them.

For me to be convinced that someone is taking a train for environmental reasons, the train would need to be more expensive for them than going by plane. Because otherwise everyone likes to see themselves in a good light and say how much their choices are dictated by ethics, when in reality the wallet is often a more potent motivator than environmental concerns. Just like every employer likes to say that they hire and promote based on merit, but then it turns out that on average taller people get hired and promoted more often. And the employers will still believe that they weren’t influenced by that. Just like travellers will overestimate the influence of environmental concerns on their choice of mode of transport. In both cases it’s because people like to see themselves in good light. And same way most of the people who say they’d prefer to buy products produced in fair worker conditions, won’t actually buy the products whose prices reflect that. Declarations are cheap. Particularly feel-good declarations.

comment 2y ago · link · parent

This point is repeated many times throughout the article. It’s not picking, unless you mean I should ignore half the article.

comment 2y ago · link · parent

I can see reduced prices driving the demand. I doubt about the reduced emissions part. Why should I believe that that’s what’s driving people?

To me it just sounds like a marketing spin. Don’t get me wrong: it’s cool that people are choosing a cleaner means of transport, but I doubt this is the reason.

comment 2y ago · link · parent

The convenience is very much new. 15 years ago in Poland it was completely normal for a train to have multi-hour delays. Now it’s not, and the trains are getting a lot faster. E.g. currently it takes 2h-2h 22m to go from Warsaw to Gdańsk. In 2016 it used to take 3h. 15-20 years ago it could take half a day or longer.

comment 2y ago · link · parent

> Amid concerns about climate change, demand for rail service is strong

This attempt at spinning it as people being motivated to use trains out of concern for the climate is hilarious. Almost nobody thinks like that. Trains are just a hell of a lot more convenient than alternative modes of transport for long distance trips.

comment 2y ago · link · parent

A curious thing about Swift: after https://github.com/attractivechaos/plb2/pull/23, the matrix multiplication example is comparable to C and Rust. However, I don’t see a way to idiomatically optimise the sudoku example, whose main overhead is allocating several arrays each time solve() is called. Apparently, in Swift there is no such thing as static array allocation. That’s very unfortunate.

comment 2y ago · link · parent

> Clojure is 16 years old, how is that hipster tech?

Common Lisp is 39 years old and it’s hipster tech. APL is 57 years old and it’s hipster tech. You can be a hipster at any age. (And it’s not a bad thing.)

comment 2y ago · link · parent

It’s only transparent for types that already implement copy-on-write. For custom types you need to implement it yourself, using reference typed private properties.

149.

Arcan Display Framework Receives Funding as Innovative Wayland Alternative(phoronix.com ↗)

2 points · by GrumpySloth · 2y ago · discuss

comment 2y ago · link · parent

What’s the difference?
1
456
55