1,279 karma · joined Apr 12, 2013 (13y ago) · 201 submissions
comment 3y ago · link · parent
comment 4y ago · link · parent
> We’re closing coal plants and building wind farms and it all just has to add up in the end. It’s not a one-to-one
And of course this won't cover the loss of energy, so let's pretend we can do that through "energy efficiency"
>You can make up that power by the way you operate the rest of your facilities or having energy efficiency savings so your customers are using less
Tl;Dr for the energy side: Smoke and mirrors.
comment 4y ago · link · parent
With a huge process, you have a timeframe between the child is spawned and it executes exec*() where you typically "do stuff" (such as closing a lot of fd)
During this timeframe the parent process has its universe COW'ed, and each write will trigger a page fault.
The performance impact can be concerning in the _parent_ process.
comment 4y ago · link · parent
We indeed have a lot of those fancy buildings from famous architects, mostly from the 70s.
They all share a common pattern:
- a repressed artist who became an architect
- a beautiful piece of concrete modern art on the outside and that makes fancy design magazine photos
- an oppressive building and a complete failure in term of comfort/ergonomy
Another example is the "Espaces d'Abraxas". But there are even worse examples when you look at brutalist architecture.
comment 4y ago · link · parent
This is why nuclear power plants should be state-sponsored projects. States typically have loans at 0% rate, or even negative interests.
comment 4y ago · link · parent
Sure, but basically it means rewriting all structures that rely on a bucket of stuff.
By the way maps often use a large bucket, and rehash in-place can be preferable.
> Which not many do, not unless the allocation is so large as to be in its own dedicated mmap
Do you know a modern operating system that does not have a mremap equivalent ?
On Linux you pretty much use it as soon as you reach large blocks.
comment 4y ago · link · parent
I tend to agree, as a C++ developer. There are many core issues in the language that haven't been resolved and that are unacceptable for kernel code.
My personal pet peeve: C++ is unable to reallocate a new[] region. This makes basically all structures (vector, hashmap, trees...) unusable for large data handling.
comment 4y ago · link · parent
You can't exit from the oil economy with renewable such as wind or solar due to their non-predictability.
If you want to stop importing Russian gaz, you need nuclear energy.
comment 5y ago · link · parent
This. Used Emacs for fifteen years professionally, and I gave up when I had to reinstall my laptop, as having intellisense-like features and easy navigation in Emacs is a complete pain.
I actually did not intent to switch to VSCode, but after a couple of hours of scratching my head with list configuration files, I ended up "trying" VSCode, and after a couple of _minutes_, everything was working (completion, navigation etc.)
After a couple of tweaking, clangd was plugged, and I had direct visual compiler feedback in realtime while typing code in the window.
VSCode is not "better". It's just another world.
comment 5y ago · link · parent
I can't wait to decolonize mathematics, physics, etc. and banish those arbitrary colonialists laws such as the law of gravitation, thermodynamics etc.
comment 5y ago · link · parent
The most extreme being (in French - https://www.deepl.com/fr/translator) the Vincennes university: https://fr.wikipedia.org/wiki/Centre_universitaire_de_Vincen...
[ TL;Dr: The most Maoist university at that time, with communists fighting (with violence) against Maoists inside the university ]
Note that this was a more "experimental" university, aimed to attract the most radical teachers (!)
There are plenty of research for the years between 65-75
comment 5y ago · link · parent
Reminds of the Maoism movement in European universities (such as in France) a few decades ago, where people critical of Mao were harassed and treated as fascists. With some universities would make Maoism a de-facto precondition to be accepted as researcher.
This seems to share the same mechanism: very few righteous people having no longer any morale compass due to ideology, and cowardliness of the rest of the herd (including the administration) that refuse to stand for reason and logic.
comment 5y ago · link · parent
You'll probably find better approaches, and while I never tried scrapy, it seems to be using a javascript engine for hard cases, which was something I thought about (but this was way above my skills at that time).
The hard parts remains however, if you want a functional site: you need to rewrite links, or use an external proxy-like mechanism. Having a fully functional offline, file-based site, is the real tricky part. Cases will remain unsolvable, as the inside code logic can produce whatever external link resource based on randomness, time, etc.
The approach in httrack was both ugly and pragmatic: attempting to recognize link/files patterns within javascript and fetch/replace what can be replaced with local links. Javascript producing html will typically be analyzed with really dumb - yet sometimes effective - js parsers. (parental advisory: don't look at the parsers code, your eyes would melt)
And obviously this is not going to solve all cases and will even break pages with tricky js
comment 5y ago · link · parent
And yet the number of casualties is lower than the number of casualties caused every year in Europe by coal: https://www.theguardian.com/environment/2013/jun/12/european...
I don't deny it was a traumatic event. But like airplane crashes, the emotion can differ from cold numbers.
comment 5y ago · link · parent
comment 5y ago · link · parent
This is even more hilarious: they sell you a "spare part" which is the logic board, for nearly the price of the laptop.
But they (1) do provide spare parts and (2) sell them at a ""reasonable price""