Hacker Newsnew | past | comments | ask | show | jobs | submit | feb's commentslogin

That one actually looks more like a real kernel with services like memory management, syscalls, processes and context switching. Nice work.


For a functionnal language, TCO is really a must have. How would you do the equivalent of loops without it ?


For a purely functional language. Scheme is not that.

https://www.gnu.org/software/guile/manual/html_node/while-do...


And you are wrong because you can define a loop as iterating recursively over a list with just car and cdr.


Can but since other constructs exist that doesn't by itself make TCO "must have"


I wasn't asking which scheme has TCO.

I was asking which scheme if the 20-50 of them was "lightweight" and embeddable.


There's another HN thread about this project: https://news.ycombinator.com/item?id=46144199


For those of us who are not used to the acronyms, DUI means Driving Under Influence. Similar term is DWI, Driving While Intoxicated.


There's PeerTube (https://peertube.tv/) which is based on Free software (https://joinpeertube.org/).


This sounds like the technique shown by 3D Printing Nerd on YouTube: https://m.youtube.com/watch?v=oHPrnYMdLow There they called it computed axial lithography.


It's exactly the same. The names haven't converged yet.


The difference is surprising. Digging deeper, the US shop does not include shipping or taxes. To get an idea, I tried for CA and that already adds $12. That's already $38 without custom tax and VAT.


Maybe some EU regulation in action that forces to put price up-front without "hidden costs" so one can compare prices more efficiently (within EU).


Fully charging the battery can cause it to age more quickly and lose capacity. Limiting charge level helps to protect it, especially when it's always connected to a power supply and don't need the battery that much.


if the li-ion is kept < 4.25v that should be no issue. I don't know why overcharging is even considered a thing (100% should be 4.22v or so for a standard li-ion cells). You can keep all tool batteries at around 4.2v (fully charged), and nothing happens - they don't degrade.

What actually kill batteries is overcharging (which has to be done on purpose in the electronics) and heat, having internals over 60C is where the real issue is.

I think phones are the 1st ones that started overcharging just to ensure lower life expectancy of the device... and of course much better autonomy during the 1st impressions.


Nice system built with only a couple of C99 macros. That small header also achieves matching for specific C types over the "sum types".

In the context of C99, isn't tagged union the more usual name instead of sum type?


It's interesting but not very practical. It's an "algebra of types" with only constants, no variables, since C does not have type variables. Thus it misses much of the point of algebraic data types in a language like Haskell (deep composability and generics with very little code to write).

Take one of the most basic sum types in Haskell's base library, Maybe:

    data Maybe a = Nothing | Just a
This simple construction gives you the ability to write functions over optional values and avoid the issues with null pointers. This would be an amazing feature to have in C but it can't be achieved due to C's very limited type system.


I used to define `Maybe` in C as a macro over a tagged union. It really unveiled a number of logic errors at compile-time, but the issue of course is to use this kind of metaprogramming sanely. E.g., instantiating `Maybe` to some other macro `T(a)`, where `a` is some other (concrete) type, would already cause a headache.


I got to say adding type variables to C would be super duper. And to me actually feels rather C like as well.


Actually Qwant.com uses bing API too and has a warning at the top of their homepage.


Yeah I saw this too. DDG was down, so I searched (on Wikipedia!) for another search engine. Tried Qwant for the first time, and it's also down.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: