Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gsliepen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
211.
▲
by
gsliepen
5y ago
Less bad but still bad. Consider that /bin/mkdir is still interpreting whatever you pass to it. What if you provide it a "filename" that starts with a dash? Then /bin/mkdir will interpret that as an option. Wha
212.
▲
by
gsliepen
5y ago
I'm missing x11vnc (a VNC server that shares an existing X screen) and xclip (not xclipboard). There are also a lot of games in that list, but I did not see xkoules or xrick. There are so many nice little gems that seems to be on the b
213.
▲
by
gsliepen
5y ago
This looks very nice. However, the description mentions "lightning fast" and "powerful". Unfortunately, those things don't mean anything without further clarification. If you really want to show your editor is faste
214.
▲
by
gsliepen
5y ago
Yes, those things creep up in various places. Some are fixed, like when you have std::vector<std::vector<int>> where it used to give an error because it thought >> was an operator. But recently I discovered this one:
215.
▲
by
gsliepen
5y ago
I am very happy with my Unihertz Jelly 2: https://www.unihertz.com/products/jelly-2
216.
▲
by
gsliepen
5y ago
No, the order in which things happen would be different, and this is what might make it more cache-efficient for rotating large images. It should look like this: https://en.wikipedia.org/wiki/Z-order_curve
217.
▲
by
gsliepen
5y ago
Indeed. Also, the old system apparently "needs thousands of volts of electricity," which is too much for airplanes, despite them heating food with microwave ovens which typically use > 10 kV to drive the klystrons that generate
218.
▲
by
gsliepen
5y ago
I assume that in an actual implementation you are not really processing every pixel log(n) times, but rather do something like new_image = rotate(old_image, 1), where 1 is the recursion level, and rotate(image, level) calls rotate(subset_of
219.
▲
by
gsliepen
5y ago
It's easy to parallelize this, and at a certain recursion level the whole block will fit into cache, so this might avoid inefficient memory access compared to a naive for-loop that just moves every pixel to its rotated position.
220.
▲
by
gsliepen
5y ago
For a while I did maintain a storage cluster that had close to 0.5 PB of data, and had a capacity of up to 3 PB (if you filled all the slots with the largest disks you can buy). You want to ensure you have a lot of redundancy and spare capa
221.
▲
by
gsliepen
5y ago
Missing is instructions for Meson. If you see a meson.build file, run: meson build This is basically the equivalent of ./configure or cmake. Then to do the actual build: ninja -C build Note that "build" in those
222.
▲
by
gsliepen
5y ago
Actually, C++ does limit the non-type template parameters[0] to integral types, enums and function pointers. But some people have found that too restrictive and would like to use other constants as well, like string literals. [0]: https:&#
223.
▲
by
gsliepen
5y ago
C++ has const generics, and they seem to be a lot more powerful, as you can use expressions in template parameters, as long as they can be evaluated at compile time of course: https://godbolt.org/z/7Tbzhx5Kc Rust is a
224.
▲
by
gsliepen
5y ago
It is possible to compose them more easily than described in the article; Lewis Baker's cppcoro library for example provides a recursive_generator<> type[0] that allows this without using any macros. It's up to the library p
225.
▲
by
gsliepen
5y ago
This article discusses things that are totally irrelevant to someone who will actually use coroutines, because they will use https://github.com/lewissbaker/cppcoro or wait for C++23 to give them the library support for
226.
▲
by
gsliepen
5y ago
> Thanks to our Telemetry, we discovered that many forms contain and use embedded JavaScript code (yes, that’s a thing!). There are two disturbing things in that sentence. At least the JavaScript I can see a reason for, it can check whet
227.
▲
by
gsliepen
5y ago
Or worse, they do a very good job on the electronics, but forget about basic mechanics. The LPL has lots of examples of that as well.
228.
▲
by
gsliepen
5y ago
Indeed. Is it raining? There's raincoats to wear, covers for your bagage, and there's even retractable covers for childrens seats on bikes. Is it snowing? It's easy to get wide tires or ones with spikes in countries that have
229.
▲
by
gsliepen
5y ago
There are certainly high risks with nuclear power, but accidents with a large loss of life also happen with other energy production methods. Also, a big accident like Chernobyl sounds horrible, but people forget that burning coal produces a
230.
▲
by
gsliepen
5y ago
I grew up with many versions of BASIC, the best ones I used were Locomotive BASIC and GFA BASIC. Today's BASIC languages, like FreeBASIC, don't feel like the old BASICs anymore. Furthermore, the power of BASIC in the 80s was that
231.
▲
by
gsliepen
5y ago
The most frustrating thing is that somewhere on their website they mentioned that most people are not familiar with the Markdown syntax, so they chose not to use it. But instead they created their own syntax that even less people are famili
232.
▲
by
gsliepen
5y ago
C++17 added std::variant ( https://en.cppreference.com/w/cpp/utility/variant ) and other types so algebraic data types are now officially part of the standard. Of course, it's not as compact to write as in
233.
▲
by
gsliepen
5y ago
There are better ways to split a string on spaces in Bash than calling external tools. For example, the following will split the line as intended, and put the results in variables: read name state roles ages version <<< "
234.
▲
by
gsliepen
5y ago
Unfortunately, cameras only capture RGB values, not a whole spectrum. It is impossible to perfectly color-correct the image unless you know both the spectrum of the light source and of the materials in the scene. A reference card with lot
235.
▲
by
gsliepen
5y ago
A great source of both clever and insightful code can be found at https://codegolf.stackexchange.com/ . Code golf is the sport of writing the smallest amount of code that solves a problem. It requires both clever use of synt
236.
▲
by
gsliepen
5y ago
The main trick GPUs use is having a massive amount of hardware threads per actual core. If an instruction in one thread is stalled on a load operation, the core will just switch to another thread. If you have more runnable threads at all ti
237.
▲
by
gsliepen
5y ago
> Electronic viewfinders are fundamentally inferior in terms of the viewing experience [...] I respectfully disagree with that. Current generation viewfinders have excellent resolution and very little lag, and while that will never be as
238.
▲
by
gsliepen
5y ago
A similar project, created by a ex-colleague of mine, with an ATtiny85, that also broadcasts the generated sound via FM: https://www.youtube.com/watch?v=7t7_naYJnHo Here is the code running on the chip: https://g
239.
▲
by
gsliepen
5y ago
> I would like to politely contest the authenticity of this specific detail. In my fairly strong collection of evidence, people just do not bubble sort without being told how to do that. I taught a C programming class for first-year stud
240.
▲
by
gsliepen
6y ago
I don't know of any newer benchmarks. However, I'm reading the results differently I guess, because the results show that with 128 threads, modules become slower only when the DAG depth is higher than 29, and that's quite a l
More ›