Better HN
topnewbestaskshowjobs
Log inSign up

charliesome

3,785 karma · joined Jan 5, 2010 (16y ago) · 463 submissions

https://charlie.bz
Submissions

comment 5y ago · link · parent

You can achieve this by recompiling the software. Cargo will not recompile dependencies that have not changed.

comment 5y ago · link · parent

There might be a nuance here I haven't grasped, but isn't the kernel's API == its syscall ABI == the boundary to userspace?

comment 5y ago · link · parent

There is simply far too much content being created all the time for current judicial systems to keep up with. Much of the law breaking content out there is never pursued.

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

> I am planning to fix this in ring early in 2021 (January)...

This is definitely the piece that gives the current versioning policy its sharp edge, so it's great news that the fix will arrive soon.

Thanks for your hard work on Ring!

comment 5y ago · link · parent

I have never used Ring directly, but my experience dealing with it as a transitive dependency leads me to avoid it.

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

Calling mass surveillance a "fundamentally Soviet activity" weakens your argument here. Is mass surveillance something that happened in the Soviet Union? Of course. But it also happens in the US and many other nations, liberal democratic or not, worldwide. So why shouldn't we call mass surveillance fundamentally American, or fundamentally capitalist?

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

As of time of writing, it is indeed front page on HN. Your comment's other claims also appear to be true. Since we agree on the facts so far, let's discuss the article.

comment 6y ago · link · parent

While the creation and destruction of a scope every loop iteration is the correct mental model for what this code does, there's no reason that implementations must actually perform any allocations - especially for an example like this where it is trivially determinable that no bindings escape the immediate scope.

comment 6y ago · link · parent

An interesting insight I came across a little while ago is that for mainstream, industrial languages, this way of thinking about types is relatively new. It's not that we're seeing the pendulum swing back to types, it's that we're discovering them for the first time!

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

Implementing my own extended memory support in the supervisor is indeed an interesting idea, I might try it out :)

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

Author here. I am planning to do an in depth write up of how this works, but it seems Hacker News found it sooner :)

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

A few people have already suggested alternatives to certbot, so I thought I'd throw another suggestion into the mix: dehydrated (formerly known as letsencrypt.sh)

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.

comment 6y ago · link · parent

Re sponge: the shell will open the output file for writing before invoking the command so in the example joey provides, /etc/passwd will be an empty file by the time sed opens it.

comment 6y ago · link · parent

This is not true. Using 'they' as a third-person singular is incredibly common, is becoming increasingly so, and has been in use for hundreds of years.

comment 6y ago · link · parent

From the rest of your comment I assume that you mean well, but I would encourage you to reconsider your statement that being gay is fashionable, and reflect on why it might be offensive to some people.

16.

Penguin Diagram(en.wikipedia.org ↗)

1 points · by charliesome · 6y ago · discuss

comment 6y ago · link · parent

There could be no reasonable use case for something like this, and yet it would still have artistic value and this would still be an interesting article.

It's a brilliant hack and we are on Hacker News after all.

comment 6y ago · link · parent

As the kind of more conservative Rust user GP references, I've had a great time with the derive_more crate's From derive [0].

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

https://github.com/nextgens/anti-paywall

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 6y ago · link · parent

The homepage is a white screen with JavaScript disabled.

If requiring JS to render the homepage is a conscious decision made considering the various tradeoffs, please at least add a message saying so in a noscript tag.

comment 7y ago · link · parent

I highly recommend reading David Wallace-Wells' "The Uninhabitable Earth" - https://www.goodreads.com/book/show/41552709-the-uninhabitab...

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

How does this impact assistive technologies? Are Facebook users using screen readers left unaware of what's an ad and what's not?

comment 7y ago · link · parent

> People dismiss that as astronomically unlikely, but it must have happened many times somewhere in the universe

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:

https://en.wikipedia.org/wiki/Giant-impact_hypothesis

comment 7y ago · link · parent

x86 does do out-of-order execution however, so while it's true that you'll never read a half-written value, it's still important to use the atomic types to ensure that reads/writes across threads are performed in the right order.

comment 7y ago · link · parent

This is an interesting post from the perspective of logistics operations for a small scale consumer electronics product.

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

CSV as a format doesn't really exist. CSV is a family of similar but not always compatible data formats each with their own special rules and edge cases.

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

It's totally subjective of course, but I really like the lack of UI polish in VLC. To me it makes it feel like a real, powerful tool. Clearly the process killing thing is a straight up bug that should be fixed, but I do hope VLC retains its utilitarian aesthetic.

comment 7y ago · link · parent

There's a few community radio stations in my home city. They play good music, support local musicians and local venues, and are largely funded by voluntary memberships. This membership gets you a bumper sticker and a good feeling.

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.

12345
16