dzsekijo | 1 year ago | on: When Zig Is Safer and Faster Than Rust
dzsekijo's comments
dzsekijo | 1 year ago | on: What Is Vim?
But then I stopped abruptly when realized Helix misses a key feature of Vim: swap files. I can just start editing and have not have to worry about losing my work, may whichever of computer panic, computer running off charge, environment (desktop env or tmux) crash, etc. occur.
So edit semantics is cool, but fundamentals like recovery should be got right before being a serious contender.
(I did a quick search to see if there is any news on this front, but what I found is all about "recovery hooks for panic", which is far more less than what's needed - it's about an emergency saving of the work if something goes awry with the editor. I need to be protected from loss if something goes awry with the environment too...)
dzsekijo | 1 year ago | on: The PayPal Mafia is taking over America's government
dzsekijo | 1 year ago | on: JSON5 – JSON for Humans
dzsekijo | 1 year ago | on: File over App: A Philosophy for Digital Longevity
(OK, OPML is not utterly human friendly as such; actually when I needed to access it locally, I parsed it and used it in an interactive programming environment.)
This was a nice hybrid workflow.
dzsekijo | 1 year ago | on: Class methods are Ruby's useEffect
DateTimeFns.add_minutes(DateTimeFns.add_hours(DateTime.current, 1), 1)
Sure thing, but the syntax can be improved without restorting to refactor into instance methods: DateTime.current.then {
DateTimeFns.add_hours(_1, 1)
}.then {
DateTimeFns.add_minutes(_1, 1)
}dzsekijo | 2 years ago | on: If PEP 703 is accepted, Meta can commit three engineer-years to no-GIL CPython
dzsekijo | 2 years ago | on: Rocky strikes back at Red Hat
dzsekijo | 2 years ago | on: Rocky strikes back at Red Hat
Red Hat bases its model on dwelling in the grey zone.
So if Rocky aspires to be a Red Hat clone... they can adopt this bit, too :)
dzsekijo | 2 years ago | on: Red Hat cutting back RHEL source availability
dzsekijo | 2 years ago | on: Update from Lemmy after the Reddit blackout
dzsekijo | 2 years ago | on: I wish JSON5 was more popular
dzsekijo | 2 years ago | on: I wish JSON5 was more popular
dzsekijo | 2 years ago | on: It's not only you, there's an explosion of ChatGPT on HN
Update: Ah, sorry, "iOS", "Firefox", I missed that. I leave it here still, to honor the pain it took me to dig it up.
dzsekijo | 2 years ago | on: OpenAI has temporarily stopped selling the Plus plan
dzsekijo | 3 years ago | on: macOS Subsystem for Linux
dzsekijo | 3 years ago | on: Firefox is losing users fast
dzsekijo | 3 years ago | on: Firefox is losing users fast
Then in the last few months... I noticed I do not notice these anymore. Using Firefox is pleasant and decent both on desktop and mobile now. They got their shit together, or my browsing habits have changed? Dunno... needs more time to decide.
Anyways, the deal maker for me is that still Firefox is the only browser that allows to export data from it in a tolerable manner. Sync data is accessible via the "About Sync" extension, and the ability to share multiple tabs on Android is golden. (As of Brave: Brave sync is great, but a third-party client or extension to explore its data does not yet exist [at least, it's hard to search for it, because "Brave sync extension" will bring up ways to sync your extensions in Brave, not extensions that interact with Brave sync].)
dzsekijo | 3 years ago | on: Why Ruby Is More Readable Than Python
Condiser the following task: take /proc/kallsyms in Linux, that lists symbols in kernel, in an '<address> <type> <name>' format, like:
0000000000000000 A fixed_percpu_data
0000000000000000 A __per_cpu_start
0000000000001000 A cpu_debug_store
0000000000002000 A irq_stack_backing_store
0000000000006000 A cpu_tss_rw
000000000000b000 A gdt_page
...
let's make stats on it -- how much of each type is present? Wanna get the result ordered by number of occurrence.In Ruby:
# ruby -rset -e '$<.readlines.to_set.classify { |l| l.split[1] }.transform_values(&:size).sort_by { |_,v| v }.to_h.tap { pp _1 }' /proc/kallsyms
{"V"=>1,
"w"=>2,
"a"=>14,
"R"=>98,
"W"=>154,
"A"=>328,
"B"=>655,
"D"=>2910,
"b"=>3097,
"T"=>22289,
"d"=>34424,
"r"=>49904,
"t"=>55346}
Of this method call chain, first and last are impure (as they do I/O), the intermediate ones are pure.In Python you'll have to grind through it procedurally. (Unless you use reach out to some advanced libs... https://gist.github.com/richardbann/5b363096de6b3de2e8178cce...)
dzsekijo | 5 years ago | on: IBM Is Destroying Red Hat and Red Hatters Are Leaving