Recent submissions

Comment · 1 year ago
Can you give an example where theories and techniques from other fields are reinvented? I would be genuinely interested for concrete examples. Such "reinventions" happen quite often in science, so to some degree this would be expected.
Comment · 1 year ago
Comment · 1 year ago
It would also be interesting to know how the orbits became quite circular afterwards (relative to the common center of mass).
Comment · 1 year ago
> Not to mention that on Linux switching the locale may change the interpretation of filenames as characters, which isn’t the case with NTFS.

If you change the locale to an uninstalled one, then yes. But if the locale is installed, then I don't see a problem.

echo $LANG

# output: en_US.UTF-8

touch fusée.txt

LANG=fr_FR.UTF-8 ls

# output: 'fus'$'\303\251''e.txt'

sudo locale-gen fr_FR.UTF-8

sudo update-locale

LANG=fr_FR.UTF-8 ls

# output: fusée.txt

Are you maybe using non-UTF-8 locale?

Comment · 1 year ago
The article mentions also that the computers are short-circuiting. I guess that you can lose a lot of energy when there is a short circuit. Maybe with an infrared camera, one can get an idea where all the energy is wasted. Apparently the author did check that sentry was not enabled.
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
So we want:

1. free/gratis Linux distribution

2. long support (~ 10 years)

3. not needing to contribute (as a community)

It seems that we can only pick two from this list (even a distribution with short support cycle needs community).

Comment · 2 years ago
This is true, but you can inspect the package (and its dependencies) once installed and before importing it. Now it is an all manual process (with default tools, as far as I know), which contributes to the current state that only very few people inspect their packages.

It can give people also a second change to notice, e.g. the typo in the package name.

Comment · 2 years ago
Comment · 2 years ago
Can you give an example of its inconsistency?

I would be genuinely interested what are the inconsistency from a Python-perspective.

I am former Matlab/Octave user. To me the julia interface of matplotlib is actually quite nice to use, but unfortunately the installation is a bit brittle.

Comment · 3 years ago
I once had an issue with my LG5 phone who entered in a boot-loop (also a common issue with LG4). I don't have a head gun, so I put it in the mainboard of the cell phone in oven for maybe 10 min at 150°C to reflow the soldering. At least I could reboot the cell phone and copy the important files. But after about an hour, it enter again the in boot loop and was broken for good.
Comment · 3 years ago
The uncompressed wasm binary for a simple fluid simulation in julia is 5k (or 2.7k compressed):

https://alexander-barth.github.io/FluidSimDemo-WebAssembly/

But here the wasm code does only the number crunching. The visualization (and memory allocation) is all done in javascript.

Comment · 3 years ago
Or just use @.

julia> X = [1.,2.,3.]; f=sin;

julia> @. X = f(2 * X^2 + 6 * X^3 - sqrt(X))

Comment · 3 years ago
It took me awhile to get used to the dot operator, but what convinced me that it was a good choice is that also your own function can be broadcasted with function_names.(args). For example is you have a function process_a_file(in_filename,out_filename,parameter_value), then you can easily process also a list of files with process_a_file.(in_filenames,out_filenames,parameter_value) (if parameter_value is a scalar it gets broadcasted). I think that it is similar to numpy ufunc's but every function have this possibility.

A useful macro is @. which allows you to write "@. A * B * C" instead of "A .* B .* C". Also the macro avoid the creation of an intermediate vector with A times B.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton