3,785 karma · joined Jan 5, 2010 (16y ago) · 463 submissions
comment 5y ago · link · parent
If we agree that greater censorship on social media is necessary, and if private companies aren't taking on the role of censor here, I think that suggests governments must become more active in their roles as censor. What would that look like and how would it work?
comment 5y ago · link · parent
Ring has a policy[0] of only supporting the latest released version with users being expected to always upgrade to latest Ring. This in itself is not so bad, but coupled with the lack of any guarantees around API stability means that it can be a very tricky dependency to work with. This problem is compounded by it only being possible to link one version of Ring in to the same program.
Even if you don't depend on Ring directly, Ring could appear as a dependency of many of your dependencies. This forces you into upgrading all of your Ring-depending dependencies in lockstep. You cannot upgrade any until all of these dependencies support the same latest version of Ring.
This is a real shame because Ring otherwise looks fantastic. The API is misuse resistant and looks quite pleasant, and the documentation is thorough. Its current versioning and stability policy however is a massive liability for any project that relies on it. I hope this changes eventually.
[0]: https://github.com/briansmith/ring#versioning--stability
comment 6y ago · link · parent
Mass surveillance is bad. It is toxic to freedom and democracy. Let's focus on that rather than invoking Red Scare tendencies of old.
comment 6y ago · link · parent
comment 6y ago · link · parent
In earlier typed languages, the types weren't there for reasons of soundness or productivity at all. The types were there for the compiler alone, as the compiler needed them to know which machine instructions to emit for various operations. Types were just a cost imposed on programmers.
Once computers became powerful enough that we could afford to spend cycles and memory making these decisions at runtime, dynamic languages became viable and we saw industry shift over to them, except in domains where dynamic languages still weren't viable, or where existing codebases or ecosystems made it not economically viable.
Fast forward to the present and decades worth of type theory knowledge is finally filtering through to industry in the form of languages like Rust, TypeScript, Swift, Kotlin, and others. For the very first time we're embracing types for their soundness and productivity benefits. This is an exciting new era.
comment 6y ago · link · parent
Another idea I had after reading the dosemu source is implementing a DPMI server to allow protected mode DOS apps to run. It might even be possible to run an early version of Windows this way too.
comment 6y ago · link · parent
When DSL is first invoked at the command line it boots up the Linux kernel which takes over control of the computer from DOS.
Now here’s the trick: DSL makes use of a processor feature called VM8086 which allows for a 32 bit operating system to run legacy 16 bit code mostly natively. This feature is how early Windows, DOS extenders, etc worked. The Linux kernel also supports VM86, although it is largely undocumented and not really used these days. I think dosemu is the only major user of VM86 on Linux.
DSL then returns to DOS, which has essentially been flipped inside out and is now unknowingly running inside a VM8086 task. Helpfully Linux does not appear to clobber DOS’s memory during its own boot process.
DSL does just enough emulation of hardware like the keyboard to make things work, allowing DOS raw hardware access for everything else. This situation of running two operating systems at the same time on the same hardware is extremely fragile and unsafe of course, but it does seem to work surprisingly well anyway!
comment 6y ago · link · parent
https://github.com/dehydrated-io/dehydrated
I've got only good things to say about it. It's a single shell script, making it super easy to install and start using. It's quite configurable, but has sensible defaults and just works without demanding much operator attention.
16.
Penguin Diagram(en.wikipedia.org ↗)
1 points · by charliesome · 6y ago · discuss
comment 6y ago · link · parent
This lets me write code like this:
#[derive(From, Debug)]
pub enum SomeSpecificError {
Io(io::Error),
SomeAppLevelErrorCondition,
}
fn do_something() -> Result<(), SomeSpecificError> {
do_some_io()?;
// ...
}
Previously I would have written: fn do_something() -> Result<(), SomeSpecificError> {
do_some_io().map_err(SomeSpecificError::Io)?;
}
I find this approach results in clear code that continues to compile and work just fine over time, even as everything changes around it.[0] https://jeltef.github.io/derive_more/derive_more/from.html#e...
comment 6y ago · link · parent
Chrome users can install this directly as an unpacked extension.
For Firefox users, there's an xpi hidden in the releases tab.
20.
Third Place(en.wikipedia.org ↗)
1 points · by charliesome · 6y ago · discuss
comment 7y ago · link · parent
The book is quite information dense, intellectually honest with regard to the likelihood of various outcomes, and offers the clearest and broadest assessment I've yet read of where we are and what lies for us in the future.
Describing the contemporary climate discourse as "alarmist" denies the severity and scale of the problem we face.
comment 7y ago · link · parent
It's hypothesised that a Mars-sized planet once collided with Earth in the early history of the solar system (about 4.5 billion years ago), creating our moon today:
comment 7y ago · link · parent
I'm fascinated by the idea that one of the features they chose to cut from their initial release - arbitrary tuning - has ended up significantly constraining how they can manufacture their product at their scale.
I'm guessing that there's a deeper philosophical reason for not building an end-user tunable radio that isn't simply "it's a feature we decided to cut so we could ship on time"
comment 7y ago · link · parent
Note that the quote is talking about a well-specified CSV, not any CSV in general. A well-specified CSV would indeed be fairly easy to parse.
comment 7y ago · link · parent
Contrast this to the commercial radio stations which allocate a huge proportion of their airtime to annoying, dishonest, manipulative ads employing all sorts of shady tactics (like those discussed elsewhere in this comments thread) to try to part me with my money.