HNHacker News
TopNewBestAskShowJobs

floitsch

564 karma · joined March 29, 2013

I worked on Dart. Now developing Toit.
submissionscomments
floitsch··on Prism
I felt the same, but then thought of experts in their field. For example, my PhD advisor would already know all these papers. For him the prompt would actually be similar to what was shown in the video.
floitsch··on A glimpse into V8 development for RISC-V
You are absolutely right, and a follow-up CL fixed the non-Zba code path. At the time of writing of the blog post, the generated code was however still using the 4 instructions instead of just two.

V8 is a huge project and ports almost have to start from backends of existing architectures. Over time we (I recently worked on the RISC-V port) improve the situation.

Note that it's also crucial to stay somehow similar to the x86 and ARM backends as the V8 team frequently makes changes to these and keeping up with them would be a nightmare if the RISC-V backend was too different.

"Does no one at Google know RISC-V" This work wasn't done by Google. Also, you don't hire RISC-V experts, but V8 experts (or other similar VMs) for such a port. I, for example, had never worked with RISC-V before. As such, it can happen that some code of the RISC-V backend is written by engineers that aren't yet experts in RISC-V.

floitsch··on KDE onboarding is good now
When Plasma crashes, all programs keep running. The only noticable thing (to me) is that the order of my apps in the task bar is different.
floitsch··on Zmij: Faster floating point double-to-string conversion
Pretty impressive.

When I published Grisu (Google double-conversion), it was multiple times faster than the existing algorithms. I knew that there was still room for improvement, but I was at most expecting a factor 2 or so. Six times faster is really impressive.

floitsch··on Regarding the Monetization of Project Maintenance
Sleef is a SIMD library that is often used (transitively) when working with LLMs.

Its maintainer now requests $1000 for approval of PRs.

Here is an example where they reject a small PR to add loongarch64 support from individual contributor: https://github.com/shibatch/sleef/pull/672

floitsch··on Ring introducing new feature to allow police to live-stream access to cameras
If they can get the data without a user's consent, then it's independent of this new feature and thus unrelated. If you believe that the government has unlimited access, then it was most likely already possible before this feature. Now, there is at least a "proper" way to give law enforcement access.
floitsch··on Ring introducing new feature to allow police to live-stream access to cameras
In that case they don't need consent anyway and it's not about this new feature.
floitsch··on Berry Script: lightweight embedded scripting language for microcontrollers
Speed and reliability.

We found that Python isn't really designed for constrained environments. The object model, in particular, makes it hard to have fast method calls. The memory layout is also affected by the language, leading to bigger objects and a worse GC.

If you are just running a small hello world, or a number crunching loop, then both languages behave similarly. However, if you actually want to run something more consequential in production you will have an easier time with Toit.

floitsch··on Berry Script: lightweight embedded scripting language for microcontrollers
A similar project: https://toitlang.org (or https://toit.io).

Currently it's only targeting the ESP32 family, but the code is pretty portable. By default, it probably also needs more resources due to OS-like abstractions, allowing for multiple containers to run on parallel, etc. Obviously that also brings some nice advantages. For example, installing or updating, a new container is just a few lines of code.

We have been working on it for more than 5 years now, and it's definitely at a stage where lots of projects would benefit from it.

floitsch··on Ask HN: Conversational AI to Learn a Language
You will improve your language skills this way, but if your skill level isn't high enough it's going to be exhausting to the native speaker as well.

I have been living in Denmark for 15 years now, and it's still easier to do conversations in English. When I speak Danish it requires more mental capacity from the other side.

I am speaking Danish from time to time, but it's only to get better at it. The English proficiency in Denmark (and probably the Netherlands) is so high that you need to be really good at the native tongue before it is easier than English in conversations.

floitsch··on Germans turn to balcony solar panels to save money
Balcony solar requires the 50Hz of the energy grid. If you turn off the main power they will stop feeding into the system.
floitsch··on Australia/Lord_Howe is the weirdest timezone
I implemented `DateTime` in Dart and Toit and wrote a blog post about the things I noticed: https://medium.com/@florian_32814/date-time-526a4f86badb

Timezones are fun...

floitsch··on Aphantasia: I can not picture things in my mind
The other ones for me:

- "go to your happy place", or "imagine you are on an island..."

- counting sheep to fall asleep. I just couldn't visualize them.

floitsch··on Aphantasia: I can not picture things in my mind
I have aphantasia, and I don't feel handicapped at all. The only thing where I really notice differences is when trying to describe people. Since I can't visualize them in my head, I can only describe "known facts", like "they have brown hair". I would make a lousy crime witness...
floitsch··on Two ways to use an LED as a light sensor with Arduino
I used this technique to send data from the cell-phone to an ESP32 using the phone's flashlight: https://www.reddit.com/r/esp32/comments/wfea4r/send_data_wit...
floitsch··on Ask HN: What are your favorite tips/tricks about IDEs that aren't well known?
My mistake. It's, alt+., not ctrl.
floitsch··on Ask HN: What are your favorite tips/tricks about IDEs that aren't well known?
In vscode: ctrl-d selects the word at the cursor, or the next occurrence of the current selection. Use it all the time.

In bash: alt-. copies the last argument of the previous command (history).

floitsch··on Unveiling secrets of the ESP32: creating an open-source MAC layer
Have a look at https://docs.toit.io/tutorials (using Toit).

I wrote lots of easy to follow tutorials there.

It depends a lot on the sensors you have. That said, even without any (or few) sensor(s) you can still have fun with network related applications like a Telegram bot.

floitsch··on The world nearly adopted a calendar with 13 months of 28 days
It's very annoying when reading books or watching movies in English.

"A 5-feet tall monster ...". As a reader I have no idea if that's big or small.

floitsch··on The Sad Bastard Cookbook
As others already mentioned, there are lots of shakes for that.

I have tried the following (mostly European):

- Soylent: the original (first). Ok, but not my favorite.

- Mana: I like their powder version (more than the drinks). Especially good with some bread sticks.

- Bertrand.bio: tastes very much like cereals. Pretty good.

- Jake food: one of my friend's favorite. I prefer others.

floitsch··on Germany’s solar power generation hit record high at weekend
Usually it's per consumed/produced kWh: https://app.electricitymaps.com/

Thanks to solar Germany is mostly in the middle of the pack right now.

floitsch··on Germany’s solar power generation hit record high at weekend
I usually find electricitymaps easier to digest: https://app.electricitymaps.com/zone/DE
floitsch··on Finland's average electricity price slips into negative territory
In Denmark most providers charge you hourly rates.

Here is, for example, the page of my current provider: https://www.ok.dk/privat/produkter/el/priser

This page doesn't yet include the additional costs (last mile...), but there is definitely a big difference whether I consume the energy at cheap or expensive hours.

floitsch··on DeviceScript: TypeScript for Tiny IoT Devices
Note that Toit has nothing to do with JavaScript or the Web. It was from the beginning designed to run on embedded devices.
floitsch··on Finland's average electricity price slips into negative territory
The current (and past) electricity prices in most of Europe can be found on nordpool.

Three days ago, in Denmark, prices went as low as -41.37Eur/MWh (where 100Eur/MWh is a common price otherwise).

https://www.nordpoolgroup.com/en/Market-data1/Dayahead/Area-...

At the moment electricity is cheapest (and therefore greenest) in the afternoon. Probably because of solar (partially from Germany).

https://app.electricitymaps.com/zone/DE

It's also great to see how much green energy Spain got recently.

floitsch··on Using ChatGPT for home automation
I have connected my esp32s to chat (telegram) and openai. With the correct prompt and an interpreter they can now execute requests in human language: https://medium.com/p/3242af6f2988
floitsch··on Chess is booming among teens
For games I'm usually on lichess, but for puzzles I tend to use chesstempo.com. I find their quality just better.
floitsch··on Giving embedded devices intelligence with OpenAI
Uses OpenAI API calls to translate human requests to a small language that is then interpreted by an interpreter on the ESP32. Runs entirely on the microcontroller.
floitsch··on Personal Concierge Using OpenAI's ChatGPT via Telegram and Voice Messages
Yeah... That would be hard to do in the limited memory of the ESP32. Main issue is the cost of TLS connections.
floitsch··on Personal Concierge Using OpenAI's ChatGPT via Telegram and Voice Messages
Did something similar (without voice) that runs on an esp32. This way I don't need any server or keep my desktop machine running.

Supports Telegram and Discord.

https://github.com/floitsch/ai-projects/tree/main/chat

Page 1 of 5Next →