Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gsliepen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
91.
▲
by
gsliepen
2y ago
It would be nice if there was a function to wait for tasks and to return the results at the same time, so that you could write something like: auto [a, b] = co_await coros::wait_tasks(fib(n - 1), fib(n - 2)); return a + b;
92.
▲
by
gsliepen
2y ago
I used this for several applications. Note that 2D convolution can be done efficiently using FFTs, and filtering can be combined with this very efficiently: if you see your high-pass filter as a convolution of its own, you can pre-calculate
93.
▲
by
gsliepen
2y ago
I've heard about CopperSpice before, but I've never personally seen any project use it. Still, it seems they have some passionate developers behind it and actual users. Forking it just because you don't like some newer compil
94.
▲
by
gsliepen
2y ago
Another big advantage of Git for sites like GitHub is that you are never putting your eggs into one basket. You have your local copy of all history in a project. GitHub is merely a mirror. Sure, some features have been sprinkled on top like
95.
▲
by
gsliepen
2y ago
> It works completely in hardware No, it works completely in software, it's just on a different CPU. Still neat though!
96.
▲
by
gsliepen
2y ago
Yes, because you only have to generate about 192 kilobytes/second to be able to make a pair of humans ear hear anything they could possibly hear, so the problem is bounded.
97.
▲
by
gsliepen
2y ago
Exactly this. Also, if it's anything like the ATmega, instruction timing will be very simple and deterministic. For some applications that matters a lot.
98.
▲
by
gsliepen
2y ago
Are the toolchains and libraries already much better or will that be in the future? Note that the CPU architecture is the least important thing of a microcontroller; as long as you have a decent compiler for a higher level language you don&
99.
▲
by
gsliepen
2y ago
How about a little microcontroller and SD card entirely encapsulated in a brick, with a coil for power and communication with the outside world?
100.
▲
by
gsliepen
2y ago
Imagine a 3D version of Noita with this aesthetic, and perhaps using smoothed particle hydrodynamics to make the falling sand engine scale to 3D.
101.
▲
by
gsliepen
2y ago
Olympus OM-D E-M1: jank. It can only do a private ESSID created by the camera itself. There is an Android app from Olympus which works well enough if you just want to manually remote control the camera. Some people have found out parts of t
102.
▲
by
gsliepen
2y ago
To be fair, that's the same when Europeans talk about Americans.
103.
▲
by
gsliepen
2y ago
Except that L2 cache is also SRAM. In fact, usually all RAM inside the CPU is SRAM, because the process for making DRAM is not very compatible with the process for making SRAM and the rest of the CPU. We are only just recently been seeing d
104.
▲
by
gsliepen
2y ago
10 years afterwards and GCC still produces the huge error messages. It seems Clang is now smart enough to stop compiling after too many errors.
105.
▲
by
gsliepen
2y ago
And for Debian users, there was a period where Firefox was called Iceweasel. Also because of trademark rules and Mozilla being a bit obnoxious, because they didn't want to allow Debian to apply their own security patches to Firefox and
106.
▲
by
gsliepen
2y ago
You might not want to squash everything into one commit before merging, you can still have multiple commits in one (fast-forward) merge, as long as each of them is in a good state. This is made relatively easy by using the `--autosquash` fe
107.
▲
by
gsliepen
2y ago
Ideally, your main branch is always in a known good state (every commit results in compilable code that passes the tests you have so foar), which makes it bisectable. Keeping all commit (including broken ones and subsequent fixes) in topic
108.
▲
by
gsliepen
2y ago
Reminds me of Planetes ( https://en.wikipedia.org/wiki/Planetes ).
109.
▲
by
gsliepen
2y ago
> defining C functions and for-loops are so much more verbose than just using JMP instructions in assembly language Are you sure? It's not just a JMP; for a loop you need a compare and increment/decrement instruction at the ver
110.
▲
by
gsliepen
2y ago
I agree with it becoming less error prone and more composable. But faster and easier? The examples I've seen in this and other articles about effect systems use many more lines of code just to print a single line than you would use in
111.
▲
by
gsliepen
3y ago
This article is a great source of information for young people who still are at the start of their life. But for the OP and for us older ones, instead of saying "what could I have done better?", it's better to say "what
112.
▲
by
gsliepen
3y ago
Even in a one-person company you don't have to do everything alone. You can offload certain things to other people. For example, you can get an accountant to do the finance stuff for you. There might also be tools that you can buy or r
113.
▲
by
gsliepen
3y ago
There is a lesser known cousin to std::vector that doesn't have to move nor copy its elements when adding new elements, and that is std::deque.
114.
▲
by
gsliepen
3y ago
Even better, you can just put the whole root fs into the initramfs image, and never pivot to another root filesystem during boot. This also allows you to netboot a whole OS.
115.
▲
by
gsliepen
3y ago
It might be able to, but it doesn't know the state of the system. It could try to determine that somehow, but that would complicate the watchdog a lot, and that is code that is almost never exercised, so the chance that there would be
116.
▲
by
gsliepen
3y ago
Of course. It is run from a supervisor, which will power off all actuators if the control software crashes. This is less ideal than a more clean shutdown though. And there is a hardware watchdog which will reboot the computer it is running
117.
▲
by
gsliepen
3y ago
At a previous job I was using destructors to ensure motors and other actuators in a telescope would shut down properly, and in the right order. This was very important, because incorrect shutdown could cause damage to equipment and potentia
118.
▲
by
gsliepen
3y ago
This does remind me of the Raspberry Pi 2 SoC, which was sensitive to light: https://forums.raspberrypi.com/viewtopic.php?f=28&t=99042
119.
▲
by
gsliepen
3y ago
Over 40 myself, and having a similar experience (I just started with an Amstrad CPC6128 instead of a Luxor ABC-802, and it came with a few games, but after that you had to write your own in BASIC). I like the part about the past/presen
120.
▲
by
gsliepen
3y ago
I recently have implemented a Pratt parser for a language prototype. I initially looked at several parser generators, but while they are easier for writing down the grammar of your language, you need to do a lot of work to make them actuall
More ›