Better HN
topnewbestaskshowjobs
Log inSign up

gefhfffh

134 karma · joined Dec 30, 2021 (4y ago) · 111 submissions

Submissions

comment 4y ago · link · parent

How does that offsetting work? Facebook is going to maintain a growing forest for the next few 100k years?

comment 4y ago · link · parent

Jep. Secure C++ is no C++ - given you don't fall back to C or ASM, and consider safer alternatives

comment 4y ago · link · parent

It's not completely fixed, e.g. you can dismantle trees with fireballs, dig for minerals in caves or work on rocks

comment 4y ago · link · parent

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

comment 4y ago · link · parent

It wouldn't because as a producer you would remove CO2 from the atmosphere which brings its carbon footprint close to zero

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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

9.

RxRust – Rust Implementation of Reactive Extensions(github.com ↗)

3 points · by gefhfffh · 4y ago · discuss

comment 4y ago · link · parent

It's not faster despite being in WiFi

comment 4y ago · link · parent

Well, punished twice for listening to lobbyists instead of climate scientists

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

C++ is way more complicated than Rust though.

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

Tried ngrx?

comment 4y ago · link · parent

> 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

comment 4y ago · link · parent

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

comment 4y ago · link · parent

Please don't confuse DI with DI containers. With DI you still have all the responsibility.

comment 4y ago · link · parent

IMHO another downside is Flutter not using native UI components, unlike React Native.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

It's not like C++ is always the only alternative, see e.g. Rust which is way simpler

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Have you evaluated Rust instead of C++?

comment 4y ago · link · parent

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).

comment 4y ago · link · parent

I agree.

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

comment 4y ago · link · parent

So, coal, gas, nuclear and renewables don't see in practice? Solution?

Waste even more energy than we already do!

comment 4y ago · link · parent

Well that's not smart
1234