2,676 karma · joined Nov 28, 2019 (6y ago) · 1,131 submissions
comment 2mo ago · link · parent
- [pic](https://home.davidgoffredo.com/hackernews/proper-time-one-li...)
- [plot](https://home.davidgoffredo.com/hackernews/proper-time-one-li...)
comment 2mo ago · link · parent
I found it hard to believe that they accounted for other forces precisely enough that they could attribute the phase change to gravity, but this is beyond me so I trust the result.
At first I thought "they showed that you can measure a particle falling in gravity," which seemed dumb because we already know that particles fall in gravity. But they showed that you can measure a single (aggregate) particle falling in gravity, which is pretty cool because if gravity is quantum then that means that they observed an interaction between the graviton and their rubidium atom.
comment 2mo ago · link · parent
comment 2mo ago · link · parent
The clojure expression reads the entire file into memory first, and then operates on that memory representation.
The pipeline processes the input in chunks. The two `sort`s might read the entire contents into memory, but an implementation like GNU sort will instead, for large inputs, create temporary files for sections of the input and then merge sort them to the output.
You could make clojure do the same thing, but it might not be as "simple" as the pipeline.
comment 3mo ago · link · parent
comment 3mo ago · link · parent
Trace spans are time-delimited units of "stuff that happened", with a tree relationship among the spans, and each span can have arbitrary tags (key/value pairs) and events (time/value).
From that, if you chose, you could derive metrics and logs. The trick is to start with tracing and to actually put it in your program, rather than trying to mostly-automatically tack it on later.
comment 3mo ago · link · parent
Ended up being more involved than the benefit it would bring, especially considering that these media server programs know how to interface with the traditional remote over HDMI (if you have the right graphics card or a dongle) and show the selection UI on screen like a smart TV.
Anyway, my response is "you don't necessarily have to complicate your e-reader, instead you have the option of making it not an e-reader."
comment 3mo ago · link · parent
On Amazon: <https://www.amazon.com/Godels-Proof-Ernest-Nagel-ebook/dp/B0...>
I might even pick up an ebook version if I can find it somewhere else. Been a while.
comment 4mo ago · link · parent
My experience with embedded stuff is very limited -- just some hobby projects on the Pico.
From what I've read, though, the on-board oscillators (there are a few of them) can drift quite a bit. One data point [says][1] several seconds per day.
On the other hand, if what you want is a microcontroller with an accurate clock, they probably make those (just not the Pico).
comment 4mo ago · link · parent
There are a few places to get the current time:
- on-board real-time clock (RTC) connected to a continuous power source (e.g. button battery)
- GPS
- Colorado WWVB signal (60 KHz), Frankfurt DCF-77 (77.5 KHz), Cumbria NPL (60 KHz)
- the internet (NTP, HTTPS servers, etc.)
- mobile internet (e.g. LTE)
- estimate time elapsed between power cycles by tracking and storing IEEE 802.11 timing synchronization function (TSF) timestamps from nearby wifi routers.
All of these are potentially problematic.
The best option is the RTC. Buy a DS3231, hook it up to your microcontroller and a button battery, and forget about it for a few years. The only problem with these (besides the battery) is that they can drift pretty badly. The fancy ones account for temperature fluctuations and are accurate to ~2 ppm, which is one minute per year. Aside from the drift, it sucks to need an always-on dedicated IC just to know the time, especially if you don't always need to know the time.
GPS is nice but it's hard to get a signal indoors, especially in a skyscraper far away from a window, as can happen here in New York. You also need a relatively bulky component and an antenna.
The longwave radio signals (WWVB, DCF-77, and NPL) are neat and old and what "atomic clocks" use, but the signal is tiny and you need a sensitive long-running receiver, either with a gigantic antenna or a slightly less gigantic ferrite rod. Even then, one of those cheap atomic clocks might not sync at all unless it's placed near a window. The WWVB signal is also very weak in certain parts of America and at certain times of day, so your circuit might only get a bit of signal over the noise once or twice a day, which might or might not be enough to deduce the time.
The plain old internet works fine, but then your power budget involves a wifi radio, though you only need to run it for a few hundred milliseconds per hour. You also need a wifi password, which is a pain to configure in an IoT device. Also, you wanted a clock, why does it need the internet? GTFOOH.
Mobile internet is way overkill.
The last idea is something I haven't tested fully, since my microcontroller (raspberry pi pico w) can't keep up with the "promiscuous mode" unofficially offered by its wifi chip. It's a neat idea, though: you're in an environment with wifi routers all around, and you want to guess the time elapsed since you last checked by listening, without credentials, to the chatter. With enough routers and some flash storage you can probably keep track of time, assuming the whole area doesn't get a power outage.
That's my very long way of saying that keeping time is a solved problem but all of the solutions have drawbacks and none works perfectly.
comment 4mo ago · link · parent
I started using them a long time ago to type Greek characters, but then I switched to vscode with a vim extension and it didn't support that keybinding so I lost the habit. Might work with the neovim extension now.
edit: Yep, but you have to add "k" to the list of "control characters handled by neovim" in the extension's settings.
comment 5mo ago · link · parent
Of course, life is about living and you only live once and yadda yadda. Saying AIs don't know something because they weren't really there smells close to androids aren't real because they weren't made by God. That's not to mention that they don't know anything in the vague sense of what we think knowing means.
I don't really have an opinion on the topic, but the framing in the article didn't speak to me. Makes me want to watch the movie again, though.
comment 5mo ago · link · parent
Here are some of the [more popular][1] ones, and then there are PCRE and Python.
It took me a while to learn that some of the older ones you see in e.g. grep are [specified by POSIX][2].
[1]: https://cppreference.com/cpp/regex#Regular_expression_gramma...
[2]: https://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd...