Recent submissions

Comment · 2 years ago
I have written a lua interpreter in JASS (the language used for WarCraft 3 maps). It's useless because at that point WC3 gained native lua support.
Comment · 4 years ago
Thanks but computing the time aint the hard part (modules are available for many languages). I'm more interested in how easy it is to fit this task into the scheduler.
Comment · 4 years ago
Well it's a mixed bag. The dusk/dawn stuff would just be like nice-to-have. I would like to be reminded 30m before dawn to for example walk the dog while the sun is _just_ still out. The other for example could be used for handling "social" events. Like some games only happen during evening hours where i check more often than in off-hours but if any game happens whenever i would like to handle it after the regular game time.

Now, nothing of that would be too hard to implement myself but these task runners pop up every so often and i would like to leverage other peoples work. Home assistant just feels a bit big for this. Do note that i currently do neither of those but i always try to evaluate these use-cases for these task-runners.

Comment · 4 years ago
I haven't looked too closely yet so please excuse me for asking this question but how dynamic can i make the timed events? I have two use-cases in mind:

1. I would like to run a task each day 30 minutes before dawn so i have to compute that time at some point.

2. I run a task normally every hour but if something happens i want to run it 20 minutes after that event.

Comment · 4 years ago
Interesting. I might play around using two indexes and try to combine both search results. This could be nice for my less technical users.
Comment · 4 years ago
I'm also using fts5 for some small projects but i haven't looked too deeply into it so i'm wondering if you have any interesting insights. Like what kind of index/options do you use? Maybe the trigram index? And your "across boundaries" mode is just word* in fts syntax?
Comment · 5 years ago
I can only advise everybody to run your C program under OpenBSD. I maintain a tool which is probably run against million lines of code and which i tested under FreeBSD, Windows and Linux where it worked. But recently i ran it the first time under OpenBSD and it SEGFAULTed almost immediatly. Of course it was an error on my side. It was a beautiful experience.
Comment · 5 years ago
ghci also gives you a list of names if it can't find the variable you typed wrong. I'm not certain but i assume they use Levenshtein aswell. I definitivly use Demarau-Levenshtein for the same feature in pjass.
Comment · 7 years ago
Comment · 7 years ago
If you consider strings as list of characters you can abstract levenshtein to work on any two lists. For example i use this with list of types to provide a hoogle-like search for some programming languages stdlib. Ironically i don't know what hoogle actually uses but i think they atleast considered such an approach.
Comment · 10 years ago
Comment · 11 years ago
Comment · 13 years ago
I'm probably fighting windmills but here it goes: DotA did not start the AoS genre which is now called MOBA. In fact the first AoS map was the map Aeon of Strife, made for StarCraft. There were tons of AoS maps before and tons of AoS maps after DotA. But i agree when you say DotA mad the AoS genre popular even though there were other very well known AoS maps beside DotA (EotA, AotZ, DoE, ToB, AoS GT, etc.).
Comment · 15 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton