Better HN
topnewbestaskshowjobs
Log inSign up

simfoo

930 karma · joined Jan 17, 2012 (14y ago) · 240 submissions

Submissions

comment 3y ago · link · parent

What if "C/C++" is not actually a thing and modern software engineering practices is what actually makes software safe? Writing modern C++ with good test coverage, sanitizers deployed and wrapping critical/unsafe parts into safe interfaces gets you _very_ far.

comment 3y ago · link · parent

1.00GHz quad-core Intel Alder Lake N200 Turbo Boost up to 3.70GHz, with 6MB Smart Cache

comment 3y ago · link · parent

stack_trace allows you to specify a custom allocator, which would protect against a lock held in the allocator (never ran into this in the real world though).

You're right about mutex & cv in the general case though

comment 3y ago · link · parent

The signal handler just saves the trace and then wakes up another thread which does the reporting. The signaled thread uses only <stacktrace> and mutex/cv, all signal-safe as far as I can tell.

comment 3y ago · link · parent

I think decentralizing and p2p is the wrong approach to solving the issue with commercialized social networks. What we really need is a non-profit & transparent & independent governance setup. Financing should happen through donations, maybe grants but certainly not ads. A bit like Wikipedia mixed with Mozilla, but even more transparent.

comment 3y ago · link · parent

The closest one has 10 solar masses. Gravitationally there is zero difference between a black hole and a regular star except that the black hole has a way smaller radius. So for us it doesn't matter _at all_.

comment 3y ago · link · parent

I agree this is one of the biggest weak points of Bazel. It lacks a distribution that provides all these goodies out of the box, with maintained and documented workflows. Setting up hermetic builds and remote caches, builds & execution requires a whole team of experts right now.

comment 3y ago · link · parent

The problem is more that "public domain" is a concept that is not universally accepted in a legal sense, examples are Europe and in particular Germany. Case in point, Sqlite had to come up with a license agreement to make it usable for companies in those countries.

comment 3y ago · link · parent

From gstring.h:

> Copyright 1988-90 by Robert B. Stout dba MicroFirm > * > * Released to public domain, 1991

However the header and readme state MIT license. You can't just release public domain code under a new license right?

comment 4y ago · link · parent

This is also my experience. Large Rust/C/C++ code bases will easily compile 3-4x as quickly with a fast workstation as with a top end laptop. I blame thermal design and power limits

comment 4y ago · link · parent

Nothing beats working directly on a fast but quiet workstation sitting next to my table.

At least for me, the productivity gains associated with quicker builds, IDE resyncs (CLion, looking at you) or just being able to have email, chat, calendar and an active video conference running without making the system crawl to a halt or long latency spikes are huge. 3-4k for a machine that will likely last 2-3 years is nothing in comparison.

comment 4y ago · link · parent

few things that help here:

- interconnect with other regions (someone always has wind or sun or both)

- spread turbines across the entire country

- build as much PV as possible (there is plenty of space on roofs)

- combine renewables with hydro storage

- (in a few places) generate hydrogen and store for times where wind & sun are not enough. Doesn't have to be pure hydrogen, converting to methane or better yet ammonia)

comment 4y ago · link · parent

11 billion € for 1GW. Cost for wind energy is around 1.2m€/MW. Which means that the same amount of money could have been used to build over 3500 wind turbines in the 2-3 MW range, producing up to 8.7GW (and probably never less than 1GW).

Nuclear is nice on paper but totally bonkers once you look at the numbers. And they aren't even accounting for all costs, e.g. insurance and long term waste storage are heavily subsidized.

comment 4y ago · link · parent

Personally, I think the mindset we need here is one we know from war times: attack the problem like you would if you were defending your country against a massive enemy force.

That would mean (among many other things):

- important industries are put under government control (energy, chemical, agriculture etc)

- suspend the legal system where it slows down your defense (e.g. no more nimby litigation possible against wind/solar farms)

- manage everything top down (but transparent)

- put up a wealth tax to finance the efforts

I guess this is very unpopular to many, but I genuinely believe a concerted war-like effort coordinated with as many other countries as possible is our only hope to fix things now.

comment 4y ago · link · parent

Will buy this purely for the fact that it has the 3.5mm jack and a separate finger print sensor. Sensor placement on the side is perfect, I've long been searching for a successor for my trusty S10e

comment 4y ago · link · parent

It's truly remarkable how badly the whole energy sector was managed in the past 16 years of Angela Merkel and her conservative-lead coalitions. It's not about nuclear or no nuclear really, Germany started out with a strong wind and solar industry and has lost all of it to China over the past decade. New wind turbines and (importantly) new power lines connecting the wind-heavy north to the power hungry south have been continuously delayed by nimby politics, also mostly pushed by conservative parties. Meanwhile the coal and nuclear industry got huge compensation payments and issuing new debt to finance investments was basically made unconstitutional by the horrible "Schuldenbremse" legislation. How bad can you fuck up country and still be seen mostly positive in the world??

comment 4y ago · link · parent

https://twitter.com/shs96c/status/1488480089700503558

comment 4y ago · link · parent

Same thing happened to a bunch of other release archives and broke our CI pipeline

comment 4y ago · link · parent

Actually it didn't, the issue came back. Disabling http3 seems to be needed to fix

comment 4y ago · link · parent

Oh man and I thought it was only me. I couldn't even refresh Firefox from the UI and had to start it in safe-mode to reset everything. That fixed it but holy moly

comment 5y ago · link · parent

Oh wow thanks, looks like exactly what I'm after. I've been using perf+flame graphs when I didn't have access to VTune, but will try using Tracy instead.

comment 5y ago · link · parent

Very interesting, but seems to be focussed on games / frame-based simulations. Does anyone know a similar generic graphical profiler for Linux that also provides system context (other threads, syscalls, preemptions)? I'm only aware of VTune.

comment 5y ago · link · parent

What features would a browser need on top of regular webview APIs?

comment 5y ago · link · parent

Not just on exit - cookie autodelete is awesome. 10s after I switch site all past cookies are gone

comment 5y ago · link · parent

Interesting project! I'd feel much safer though if the server-side stack were available open-source to self-host. They can still offer the subscription for people who don't want to self-host.

comment 5y ago · link · parent

If trust is the main criteria, I guess self-hosting is the only option (albeit a time-intensive one). There are commercial providers like mailbox.org that offer the possibility to PGP-encrypt incoming mails so that only you can read them.

comment 5y ago · link · parent

My guess is also that the age of high-end graphics cards for 500€/$ has come to an end. Going to order a 3070 for 850€ now, after waiting for months

comment 5y ago · link · parent

It is a myth that swiss-based providers are in any way safer/more anonymous than others. See here for a recent article (in German): https://steigerlegal.ch/2021/08/02/protonmail-daten-usa/

comment 5y ago · link · parent

I get your point. As a EU citizen though, I want to at least have a way to realistically fight a lawful intrusion after the fact. If I understand the Australian laws correctly, they are mostly enabling hidden surveillance.

I'll be trying out https://mailbox.org/en as an alternative. They seem to have good PGP infra and are hosted in Germany.

comment 5y ago · link · parent

As much as I love Fastmail, I think it's time to move elsewhere. I don't feel safe trusting a Australia based company with my online identity after all those hostile laws.
12345
8