News for hackers. Stuff that matters.

gefhfffh

How does that offsetting work? Facebook is going to maintain a growing forest for the next few 100k years?
Re:Top secure C++ coding practices on Wednesday March 16, 2022 @08:04PM (#30705826)
Jep. Secure C++ is no C++ - given you don't fall back to C or ASM, and consider safer alternatives
Re:Veloren is a multiplayer voxel RPG written in Rust on Monday March 14, 2022 @08:24AM (#30671560)
It's not completely fixed, e.g. you can dismantle trees with fireballs, dig for minerals in caves or work on rocks
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

Re:Directly converting CO2 into a gasoline fuel (2017) on Thursday March 10, 2022 @05:08PM (#30633152)
It wouldn't because as a producer you would remove CO2 from the atmosphere which brings its carbon footprint close to zero
Re:Directly converting CO2 into a gasoline fuel (2017) on Thursday March 10, 2022 @07:27AM (#30626146)
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

Re:Directly converting CO2 into a gasoline fuel (2017) on Thursday March 10, 2022 @06:28AM (#30625747)
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

Re:Directly converting CO2 into a gasoline fuel (2017) on Thursday March 10, 2022 @06:25AM (#30625723)
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
Re:Building a web app with no framework on Sunday March 06, 2022 @03:56AM (#30576110)
It's not faster despite being in WiFi
Re:MasterCard suspends all services in Russia on Saturday March 05, 2022 @06:49PM (#30573245)
Well, punished twice for listening to lobbyists instead of climate scientists
Re:Cello – High Level C on Saturday March 05, 2022 @03:57AM (#30565771)
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.

Re:Cello – High Level C on Saturday March 05, 2022 @03:23AM (#30565559)
C++ is way more complicated than Rust though.
Re:SPAs Were a Mistake on Thursday March 03, 2022 @03:21AM (#30538530)
> 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.

Re:SPAs Were a Mistake on Wednesday March 02, 2022 @07:59PM (#30535728)
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.

Re:SPAs Were a Mistake on Wednesday March 02, 2022 @07:33PM (#30535523)
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

Re:SPAs Were a Mistake on Wednesday March 02, 2022 @07:22PM (#30535430)
Tried ngrx?
Re:SPAs Were a Mistake on Wednesday March 02, 2022 @07:12PM (#30535355)
> 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

Re:CXX-Qt: Safe Rust bindings for Qt on Wednesday March 02, 2022 @08:59AM (#30527350)
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

Re:Dependency injection in Go with Uber-go/fx on Sunday February 27, 2022 @09:22AM (#30488673)
Please don't confuse DI with DI containers. With DI you still have all the responsibility.
Re:Flutter is the most popular cross-platform mobile SDK on Tuesday February 22, 2022 @06:35AM (#30426622)
IMHO another downside is Flutter not using native UI components, unlike React Native.
Re:C meeting is over. C23 added: on Saturday February 19, 2022 @06:41AM (#30396357)
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

Re:C meeting is over. C23 added: on Saturday February 19, 2022 @05:41AM (#30396045)
It's not like C++ is always the only alternative, see e.g. Rust which is way simpler
Re:C meeting is over. C23 added: on Saturday February 19, 2022 @05:21AM (#30395954)
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.

Re:C meeting is over. C23 added: on Saturday February 19, 2022 @03:52AM (#30395509)
Have you evaluated Rust instead of C++?
Re:Ask HN: Should we own the free stuff we pay for? on Tuesday February 15, 2022 @06:57AM (#30345331)
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).
I agree.

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

Re:David Rosenthal on cryptocurrencies on Saturday February 12, 2022 @04:21AM (#30311313)
So, coal, gas, nuclear and renewables don't see in practice? Solution?

Waste even more energy than we already do!

Re:David Rosenthal on cryptocurrencies on Saturday February 12, 2022 @03:05AM (#30310880)
Well that's not smart
Re:David Rosenthal on cryptocurrencies on Saturday February 12, 2022 @02:43AM (#30310761)
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

Older »