Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
varajelle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
varajelle
4y ago
No. Not according to the classical definition of age which is the time since birth. I was born a few decade ago. My grandparents are decades older then me. The earth in millions of year older than me. And the galaxies billions of lightyears
92.
▲
by
varajelle
4y ago
Another declarative UI framework written in rust: https://github.com/slint-ui/slint
93.
▲
by
varajelle
4y ago
Maybe he is talking about exception safety. vector::push_back could throw an exception. But this is far fetched because people doing manual memory management don't usually rely on exceptions, and just abort the program when this happen
94.
▲
by
varajelle
4y ago
if you don't know what it does, don't delete it, nor keep it until you know what it does.
95.
▲
by
varajelle
4y ago
In the same period, France went from 10 to 4.2 t/capita (Source: https://ourworldindata.org/co2/country/germany?country=DEU~F... )
96.
▲
by
varajelle
4y ago
This is a funny argument against nuclear. Some nuclear reactor have to shut down for a few days to avoid heating the rivers is a big problem. But the solar panel being down more than half the time (night or clouds) and the wind turbine also
97.
▲
by
varajelle
4y ago
Radioactive, dangerous chemical, ... And the thing is that these are actually harming the people who are near the area where they are disposed, so the harm is more direct. CO2 is more like a global problem, so not as worrisome for the local
98.
▲
by
varajelle
4y ago
Looks like a mix of Rust and C. Like a French person trying to speak English, but still saying half of the words in French.
99.
▲
by
varajelle
4y ago
(Not a physicist myself) Blackholes are just a solution to Einstein equations for an object in which all its mass is concentrated in its Schwarzchild radius. Protons and electrons are bigger than that so they are not Blackholes and they wil
100.
▲
by
varajelle
4y ago
It's not all black and white. Wireless sure has its uses. > I don't see any problem with a wireless One of the problem explained in the article is that you may not realize the problems. --- So the idea would be to use wires by
101.
▲
by
varajelle
4y ago
Unwrap is supposed to be used when the developer know that the error can't happen. Or that if that error happen there is no recovery anyway, and the best thing to do is to abort the program.
102.
▲
by
varajelle
4y ago
Oh, they'll tell you. Unconsciously, using their body language.
103.
▲
by
varajelle
4y ago
Democracy ≠ politically stable
104.
▲
by
varajelle
4y ago
> I'm not sure why they can't just put wind turbines in the UK. From the article: > When domestic renewable energy generation in the United Kingdom drops due to low winds and short periods of sun, the project will harvest th
105.
▲
by
varajelle
4y ago
I don't think you can compare the rust dependencies and #leftpad. Crates.io don't allow to remove packages. Also dependencies don't tend to be 10 lines of code only
106.
▲
by
varajelle
4y ago
The alternative is to write the feature yourself. Probably not better from a security point of view. And you have to maintain it yourself.
107.
▲
by
varajelle
5y ago
fn foo(xx : &Mutex<String>) { let lock = xx.lock(); let ptr = &mut *lock as *mut String; unsafe { use_from_c(ptr) } } You get the idea: you don't want the lock or the string to be
108.
▲
by
varajelle
5y ago
I meant a std::string on the stack, which is just a handle for more memory on the heap
109.
▲
by
varajelle
5y ago
Of course you can call drop() manually, but almost nobody does or even think about it because that's not the way you program in a language with RAII. Don't get me wrong. I do think that rust and c++ RAII is much more convenient an
110.
▲
by
varajelle
5y ago
But it is. If you have a String on the stack, it's memory is only reclaimed at the end of the scope, while it often could be free'd before. This is especially bad in async code around await point since it means the memory need to
111.
▲
by
varajelle
5y ago
They already have more than 10k star now. So this mistake sure gave them some publicity.
112.
▲
by
varajelle
5y ago
And you can do the same with the Rust dependencies (with cargo-vendor for example) Cargo has even an --offline flag.
113.
▲
by
varajelle
5y ago
> I can grab the kernel sources from 1997 and build them today. Can you? Do they still compiler with current compiler? You'll probably need to find a compiler of that time... And also all the interpreter for all the build scripts. W
114.
▲
by
varajelle
5y ago
Can you please elaborate? These crates are no_std and provide functionality which seems useful regardless of on the kernel or not. I don't understand why it looks bad from a performance or security point of view. These crate are well e
115.
▲
by
varajelle
5y ago
> their blinky app is like 100KB I just compiled the blinky example for a cortex m4 board (the example in the rust hal crate for that board, not using any unsafe), and the striped binary is 420 bytes. So you probably want to review your
116.
▲
by
varajelle
5y ago
https://en.m.wikipedia.org/wiki/Kettle_logic
117.
▲
by
varajelle
5y ago
Strongly disagree. Science is based on fact and whether models fits observations. Politics and core values is more like fashion and there is no right or wrong. See also https://en.wikipedia.org/wiki/Is%E2%80%93ought_pro
118.
▲
by
varajelle
5y ago
The current version (6.3, just released) is free and open source. You must be confused with the LTS which is the commercialy supported version. And yes, if you want a commercially supported version, you have to pay. Isn't that normal?
119.
▲
by
varajelle
5y ago
How do you not emit CO2 when producing cement? The only way to be carbon neutral is to "offset" it by having some carbon capture industry to somehow remove the equivalent of CO2 from the atmosphere.
120.
▲
by
varajelle
5y ago
New features is not incompatible with easier to learn. User will have to learn at some point how to do X with the language. Without the new feature, that might be some complex pattern which is difficult for user to remember, let alone come
More ›