• 10 Posts
  • 54 Comments
Joined 2 years ago
cake
Cake day: June 25th, 2023

help-circle






  • wolf@lemmy.ziptolinuxmemes@lemmy.worldBackdoors
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Golangs web server is production grade and used in production. (Of course everyone uses some high performance proxy like NGINX for serving static pages, that’s another story.)

    Technically you are right that java has no production web server, which I don’t like, OTOH Java has standard APIs WebServers and Spring is the defacto standard for web applications. (I totally would not mind to move Spring into the OpenJDK.)

    My point is simple: Instead of having Rust edtion 2020, 2021 etc. and tweaking the syntax ad infinitum, I’d rather have a community which invests in a good/broad standard library and good tooling.

    The only platform widely used in production w/o a big standard library is Node.js/JavaScript, mostly for historical reasons and look at the problems that Node.js has for a decade now because of the missing standard library.


  • wolf@lemmy.ziptolinuxmemes@lemmy.worldBackdoors
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    Easily, just look at the standard libraries of Java/Python and Golang! :-P

    To get one thing out of the way: Each standard library has dark corners with bad APIs and outdated modules. IMHO it is a tradeoff, and from my experience even a bad standard library works better than everyone reinvents their small module. If you want to compare it to human languages: Having no standard library is like agreeing on the English grammar, but everyone mostly makes up their own words, which makes communication challenging.

    My examples of missing items from the Rust standard library (correct me, if I am wrong, not a Rust user for many reasons):

    • Cross platform GUI library (see SWING/Tk)
    • Enough bits to create a server
    • Full set of data structures and algorithms
    • Full set of serialization format processing XML/JSON/YAML/CVS/INI files
    • HTTP(S) server for production with support for letsencrypt etc.

    Things I don’t know about if they are provided by a Rust standard library:

    • Go like communication channels
    • High level parallelism constructs (like Tokyo etc.)

    My point is, to provide good enough defaults in a standard library which everybody knows/are well documented and taught. If someone has special needs, they always can come up with a library. Further, if something in the standard library gets obsolete, it can easily be deprecated.


  • Digital, unless I really want the book and it is only analog.

    The analog form factor of books is IMHO much nicer, and I understand everyone who doesn’t like digital books.

    Stil, for me going digital beats analog:

    • Having books always in my pocket, I never wonder what to do if I have to wait somewhere
    • Going for work/leisure travel, always fully stocked with interesting reading material
    • Learning from books and making notes? Digital makes it far easier
    • I mostly read English books for learning and in my country one has to pay a heavy surcharge for English books

    I also have to say, Amazon really earned all the critic it gets, but their Kindle apps and physical devices are awesome. It is easy to buy DRM free books and read/sync them with Amazon kindle infrastructure (send to device etc.).


  • wolf@lemmy.ziptolinuxmemes@lemmy.worldBackdoors
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    10 months ago

    THIS.

    I do not get why people don’t learn from Node/NPM: If your language has no exhaustive standard library the community ends up reinventing the wheel and each real world program has hundreds of dependencies (or thousands).

    Instead of throwing new features at Rust the maintainers should focus on growing a trusted standard library and improve tooling, but that is less fun I assume.





  • Thank you very much for your answer! :-)

    I would also assume, that at least 1-3 registers are ‘always’ in a CPU, like instruction pointer, top of stack for stack machines or for modern CPUs frame pointers.

    For the NES, as far as I understand, you can also operate on the lower memory addresses with the CPU by simply referring to their address.

    In the end, what triggered my question is the (banal) insight, that one actually does not need registers from computer science point of view and I am wondering if there are any implementations.

    (Obviously for speed reasons alone one wants registers…)





  • I have it on all my phones and Steam.

    I love the phone version, because StS works perfect/intuitive with touch controls. I also play it on the laptop with a mouse, no problem. I never used a Switch so cannot comment on it at all.

    It really boils down to how you like to play it, but right now it is only a few bucks in the Steam sale, and you can return it within 2 hours, so why not try it on Steam and see if it clicks? (WARNING: It clicked for me after more than 2 hours, at the start I found it a little bit bland.)