HNHacker News
TopNewBestAskShowJobs

evomassiny

42 karma · joined December 4, 2017

submissionscomments
evomassiny··on French firefighters face 'pyrocumulonimbus' for first time
About a third of those fires are criminal [0], yes that's a lot, but the majority are still accidental or natural.

Even the criminal ones are only enabled because of the dry vegetation, caused by the recent heat waves. IMO focusing on what caused the spark is missing the root cause: global warming.

And yes you can argue that such fires existed previously, but what's concerning is that the frequency on which they are happening is increasing rapidly

[0]https://observatoire.foret.gouv.fr/themes/les-causes-des-inc...

evomassiny··on Python 3.15’s Ultra-Low Overhead Interpreter Profiling Mode
Could you duplicate `RECORD_INST` before each `INSTRUCTION_N`, so that:

```

   INSTRUCTION_1:
     // subroutine 1
     ip++;
     goto *dispatch_var[*ip];

   INSTRUCTION_2:
     // subroutine 2
     ip++;
     goto *dispatch_var[*ip];
```

becomes: ```

   RECORD_INST_1:
     // record logic
   INSTRUCTION_1:
     // subroutine 1
     ip++;
     goto *dispatch_var[*ip];

   RECORD_INST_2:
     // record logic
   INSTRUCTION_2:
     // subroutine 2
     ip++;
     goto *dispatch_var[*ip];
```

This way you could directly swap `dispatch_var` with an array populated with the `RECORD_INST_*` labels, and remove one step at runtime.

Or maybe this is what you are trying to avoid to reduce the binary size ?

evomassiny··on Incremental – A library for incremental computations
Can't you solve it using hash trees (or Merkle trees) ?

You tag each computation nodes with a hash of its dependencies and some constant salt, that gives you an ID which identifies the results that the computation node would produce; before running it.

You can then use those IDs to index the computations results in a cache; whenever you query a computation results, as long as you update the IDs of each leaf of the computation graph, you will only re-compute the nodes that need to be updated

evomassiny··on Show HN: NoSuggest – Watch YouTube without the recommendation algorithm
In the same vein, there is the "tournesol"[0] browser extension, which plugs its own recommandation algorithm into YouTube, to promote educational videos

[0]: https://tournesol.app/

evomassiny··on Misty: A secure distributed actor language
An interesting project, but it seems to be in its infancy :) I definitely want an actor based language to play with, and something with a strong type system would be perfect. gleam [1] and inko [2] look promising in this regard

[1]https://gleam.run/

[2]https://inko-lang.org/

evomassiny··on We're forking Flutter
I've nothing to add to the conversation, but I jump on this oportinity to tell you that i like the content you've made with Adam Barth on yt very much, have a great day :)
evomassiny··on The Future of TLA+ [pdf]
hyperref does this with the "\ref{}" command, it can link to any defined \label
evomassiny··on Go automatically downloads a newer toolchain if needed
I thought go binaries were purely static, aren't they ?
evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
It doesn't really make sense to compare a 350T sail boat with a super tanker, a comparable diesel boat produce 36g per ton per km(according to the same report), the "grain de sail II" aims to replace those, and the gains are huge.
evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
According to [0], a typical container ship generate 12.5 g of CO2 per ton per km, which means that one trip from France to NY with 350T of cargo would release about 35T of CO2 in the atmosphere.

I'm convinced that this sail boat generates an order of magnitude less of that (I can't find any estimate of it)

Whatever the initial CO2 cost of the construction of this boat is, I'm sure that it's a net benefits if it's used long enough

[0]: https://www.ecsa.eu/sites/default/files/publications/2020%20...

evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
I don't really understand how the yearly tonnage per person is relevant here
evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
How is 360$ of fuel more eco-friendly than 0$ ? I don't get your argument
evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
This is their second boat,and they already do exactly that. So far it's been quite successful
evomassiny··on 350 tons of of chocolate and wine arrive on world’s largest cargo sailboat
Could you elaborate on why this is not a method by which carbon emissions can be significantly reduced ?

This is only the second boat of a small company, they most likely don't have the ressources to get a bigger one. At this scale, the only way to make money is to move luxury products.

IMO it's a good start.

evomassiny··on European governments shrinking railways in favour of road-building
Population count is just one of many metrics when evaluating the "niceness" of a place. Maybe "destroyed" is not the best way of describing the effect of car dependency (my english is not that good) but a city that doesn't value walking sounds like hell to me.
evomassiny··on European governments shrinking railways in favour of road-building
Houston comes to mind, it has a very low walkbility index (see https://pedestriansfirst.itdp.org/).
evomassiny··on European governments shrinking railways in favour of road-building
This is a valid point, I don't know of any "bus only" highway but it could a good alternative.
evomassiny··on European governments shrinking railways in favour of road-building
a couple of reasons:

* cars destroy cities, they take huge chunks of the public space,

* air pollution,

* noise pollution,

* safety,

* fast floods favored by impermeable soil covers,

* social inequalities (not having a car make you less capable in a car centric environment),

* climate change

evomassiny··on How to use a Python multiprocessing module
Agreed ! Plus, the ability submit a bunch of tasks, and to block until _one_ task completed (akin to `epoll_wait` of tokio's `select`) makes it quite useful. I don't know of a use case or `mutiprocessing.Pool` which is not covered by `concurrent.futures.ProcessPoolExecutor`; so I wonder why both exist
evomassiny··on SUVs emitted more carbon dioxide last year than most countries
For a fair comparison, hybrid cars can easily do 50+ MPG. For instance the "toyota yaris hybrid" is supposed to run 62MPG (3.8L/100km).
evomassiny··on Idris 2 0.6.0 is now available for the JVM
> Just like `zero | one | two` is not equivalent to `Option<one | two>`

Isn't it ? both cases represent a type than can express 3 variants

evomassiny··on Idris 2 0.6.0 is now available for the JVM
exaclty, whether you call it 'Nothing' or 'null' does not matter, as long as it represents a distinct type than 'true' or 'false'
evomassiny··on Idris 2 0.6.0 is now available for the JVM
the type `null | true | false` is different from `true | false`, a type checker can assert that you handle the `null` case before using a function that wants a boolean. This is how rust handles it (with the Option<T> type).
evomassiny··on Data Classification: Does Python still have a need for class without dataclass?
dataclasses document the full set of attribute they can hold, along with their type.