HNHacker News
TopNewBestAskShowJobs

gefhfffh

134 karma · joined December 30, 2021

submissionscomments
gefhfffh··on Meta suspends Netherlands data center due to political pushback
How does that offsetting work? Facebook is going to maintain a growing forest for the next few 100k years?
gefhfffh··on Top secure C++ coding practices
Jep. Secure C++ is no C++ - given you don't fall back to C or ASM, and consider safer alternatives
gefhfffh··on Veloren is a multiplayer voxel RPG written in Rust
It's not completely fixed, e.g. you can dismantle trees with fireballs, dig for minerals in caves or work on rocks
gefhfffh··on Why does Google use location for language rather than browser settings?
And docs.microsoft.com pulls the language unchangably from the location: https://github.com/MicrosoftDocs/feedback/issues/462

It's so annoying. There is an option to change the language, however I have to change it every time I search for something, because the language doesn't get saved

gefhfffh··on Directly converting CO2 into a gasoline fuel (2017)
It wouldn't because as a producer you would remove CO2 from the atmosphere which brings its carbon footprint close to zero
gefhfffh··on Directly converting CO2 into a gasoline fuel (2017)
PV needs physical resources that aren't for free or unlimited. PV needs space. Most energy used has still an high negative impact on the atmosphere. Low efficiency somewhere is energy potentially wasted that could reduce carbon emissions somewhere else.

Heating is waaay more efficient with heat pumps. Aviation... Well who can still afford it...

There are other forms of storage as well, e.g. hydro, heat storage, and many more

I'm not saying it doesn't have it's uses, but efficiency is important

gefhfffh··on Directly converting CO2 into a gasoline fuel (2017)
It's cheaper, but the costs are external costs (calculated for the next 100 years about 600 Euro per ton of emitted CO2).

They could be internalized by CO2 pricing, such as CO2 tax or certificates

gefhfffh··on Directly converting CO2 into a gasoline fuel (2017)
Well, short term it may be cheaper. Long term you are going to pay, because the efficiency is horrible, 10-30% depending on who u ask
gefhfffh··on Building a web app with no framework
It's not faster despite being in WiFi
gefhfffh··on MasterCard suspends all services in Russia
Well, punished twice for listening to lobbyists instead of climate scientists
gefhfffh··on Cello – High Level C
True for your new project from scratch when you already sucked up C++ such that you know what&when.

But at this point you know C++ pretty well (including all what you don't want to use, take a look at the CPP Core Guidelines), and using Rust is almost trivial, since Rust doesn't really introduce anything really new you wouldn't be already familiar with.

At least that was my experience.

gefhfffh··on Cello – High Level C
C++ is way more complicated than Rust though.
gefhfffh··on SPAs Were a Mistake
> unless you load from a separate domain

Which is the case... app.element.io doesn't host a Matrix server. Servers are completely independent of that.

gefhfffh··on SPAs Were a Mistake
I wonder how you would build an encrypted messenger like like Element (app.element.io) without SPA style.

I think it's not even possible, since you are required to process incoming messages client side and must not send any private keys to the server.

gefhfffh··on SPAs Were a Mistake
I haven't said that something isn't an app, unless it can go long periods of time without server interactions.

Generally, server interactions are arbitrary with SPAs, while SSR will happen all the time.

Going only a few minutes without server interactions in an interactive app is a big leap compared to SSR.

PS: I not only can pull that off, but I did. It's not too hard to think of apps like that. Consider e.g. Vscode

gefhfffh··on SPAs Were a Mistake
Tried ngrx?
gefhfffh··on SPAs Were a Mistake
> a bit of extra text

Doesn't really sound like an application, but a website.

In a web app it can happen that you use it for an hour without the backend doing a single thing.

> There are only fewer languages to deal with if you aren't in charge of writing backend code.

You don't have to deal with them at the same time

gefhfffh··on CXX-Qt: Safe Rust bindings for Qt
The Rust Windows API provides a cast method to jump through the inheritance hierarchy.

Previously, additionally, all base class methods were generated for derived classes (structs). This was removed due to high compile times

https://github.com/microsoft/windows-rs

gefhfffh··on Dependency injection in Go with Uber-go/fx
Please don't confuse DI with DI containers. With DI you still have all the responsibility.
gefhfffh··on Flutter is the most popular cross-platform mobile SDK
IMHO another downside is Flutter not using native UI components, unlike React Native.
gefhfffh··on C meeting is over. C23 added:
Before I tried Rust (I got sick of it and the slow progress of Herb Sutter's research), I have used CLion with clang-tidy and had plenty of memory issues going undetected.

Needless to say I didn't restrict myself to pass-by-value (compatible -> structs with ptrs are problematic as well) style, which seems quite restrictive

gefhfffh··on C meeting is over. C23 added:
It's not like C++ is always the only alternative, see e.g. Rust which is way simpler
gefhfffh··on C meeting is over. C23 added:
I get that the compile process is faster, but simpler?

In my experience, the compile process usually consists of "cargo build"

A advantage of Rust is that usually you spend way less time debugging, because the compiler prevents many mistakes from compiling in the first place.

gefhfffh··on C meeting is over. C23 added:
Have you evaluated Rust instead of C++?
gefhfffh··on Ask HN: Should we own the free stuff we pay for?
You could even argue that you should own your "free" services, since you pay for them indirectly (through buying products of companies that buy ads, and by watching ads).
gefhfffh··on Ask HN: Are “no-code” and “serverless” terms misleading?
I agree.

Was pretty bummed when I looked up what's actually behind those terms.

gefhfffh··on David Rosenthal on cryptocurrencies
So, coal, gas, nuclear and renewables don't see in practice? Solution?

Waste even more energy than we already do!

gefhfffh··on David Rosenthal on cryptocurrencies
Well that's not smart
gefhfffh··on David Rosenthal on cryptocurrencies
Are you going to copy your stuff to every post of mine now?

I have already answered that.

Excess power can be removed from the system removing valuable CO2 emissions damaging society for about 700 dollars a ton

gefhfffh··on David Rosenthal on cryptocurrencies
Nope, smart states do that. Heat can be stored. Heat when it's cheap.
Page 1 of 4Next →