• 2 Posts
  • 20 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle
  • I think it is best to have some understanding of how an OS works, and how Python works, before asking whether you can write an OS in Python.

    Python is basically a scripting wrapper around a bunch of C functions (“builtins”) and there are means of installing additional C functions if you need them. Without any of the builtins, you really can’t do much of anything. For example, “print(2+2)” computes the string “4” (by adding 2+2 and converting the result to decimal), then calls a builtin to actually print the string on the console.

    For an OS, you will need quite a few more C functions, mostly to control timers and task switching, the main functions of an OS. Given enough C functions though, in principle you can write an OS.






  • You mean RPL? There are lots of interpreters for that already. That’s the sort of thing to write because you want to write it, not because other people want it, unless you’re part of a community that is asking for it.

    If you just want to implement an interpreter because language implementation interests you, I suggest Lisp or Scheme rather than something like RPL. The book “Structure and Interpretation of Computer Programs” explains how to do that and it is great. You can read it online at mitpress.mit.edu/sicp .




  • Yes I use lemmy.ml sometimes, but stay mostly on .world by inertia. It doesn’t make much difference. It does matter where the communities are. c/vegan is big and active and it’s on .world. The catfood incident there didn’t affect me directly (I’m not a subscriber) but it affected all the participants, many of whom are on other servers. So it’s not enough for users to move from .world. Communities would have to move or split as well. The federation model is that .world exports its censorship to every server that federates with it.

    In fact, community fragmentation is already a huge fediverse fail even without censorship causing even more fragmentation.


  • This false equivalency pains me to my core. I don’t really have anything to say about the rest of your comment, but ffs can people stop with this nonsense take? You’re implying that the difference between centralized corporate authoritarianism and decentralized grassroots democracy is negligible.

    It might very well be that the corporate censors are worse human beings than the Lemmy censors. That is completely independent of which platform experiences more censorship. It’s literally against the Lemmy World terms of service to discuss unsanctioned brands of cat food without supplying scientific sources. That nailed Lemmy’s coffin shut for me. There is nothing like that on Reddit. It’s ok, I’m not trapped in here with you. You’re trapped in here with me.




  • @Teknevra, you’ve posted a number of ideas like this which seem based on the premise that all it would take to make them happen is writing the software and keeping the servers running. In fact those are really the easy parts.

    Any above-ground platform involving user to user payments (Patreon, Paypal etc.) has to devote a ton of energy into anti-fraud, anti-money-laundering, trade in illegal goods, etc. AO3 isn’t just file hosting for fanfiction, it’s explicitly political in that it aims to give a safe space for works that would be banned on other platforms due to subject matter that draws disapproval. That takes a lot of ideological commitment and some level of moderation, legal backing, etc. Pulling non-fediverse sites into the fediverse when they desire to run their own walled gardens for whatever reasons is another set of battles to fight. So in each case, the obstacles to your idea involve conflicts between humans, not just lack of the right software.

    Why do you find the fediverse so great anyway? Lemmy is basically a failure IMHO. Instead of having one giant jerk censoring things like on Reddit, there are instead dozens of little petty ones wanting to defederate from other instances. Reddit is mostly a superior experience for users, with just a few of us fringe types staying on Lemmy because of priorities that almost nobody else cares about. Mastodon gained some popularity when Twitter became an intolerable hellhole, but Bluesky ended up recapturing a lot of those departing users.

    I appreciate your good intentions and willingness to help out with various annoying situations, but I think it’s important to stay clear-headed about exactly what you are trying to do.








  • Writing a book when you don’t know the subject matter doesn’t sound likely to result in a good book. Even more so for a language like Rust, which (short of Haskell) is the closest thing to a mainstream language that is informed by a lot of pointy headed PL (programming language) theory. A book about programming in Rust doesn’t have to go into the theory per se, but the author should be familiar with it, just like someone who writes an introductory calculus or statistics text really needs a much deeper mathematical background than the book itself will convey.

    If you want a Rust-related hobby, first of all, why not do Advent of Code in Rust, or otherwise make a study of Rust? And then if you’re interested in PL theory, that’s another area to study. Harper’s book PFPL is a good place to start: https://www.cs.cmu.edu/~rwh/pfpl/