Interests: programming, video games, anime, music composition

I used to be on kbin as e0qdk@kbin.social before it broke down.

  • 11 Posts
  • 400 Comments
Joined 1 year ago
cake
Cake day: November 27th, 2023

help-circle
  • Ruby is already a functional programming language – you can pass functions to functions, return functions from functions, and make closures in Ruby already. You’re probably already using some functional programming concepts if you’ve done anything non-trivial in Ruby even if it didn’t register for you as “functional programming”.

    If you want to do ML (current “AI”), you’d probably do best to learn some Python (PyTorch, TensorFlow, etc.) and maybe CUDA for lower-level control. (It’s basically C++ with extra features for running code on NVIDIA GPUs.) There might be Ruby wrappers for the underlying ML libraries, but I expect most resources you’ll find (e.g. StackOverflow answers) will assume you’re working with Python…

    If you’re still interested in learning one of the languages you listed, you’ll get some educational benefits from exploring them but I don’t think you’re likely to get much practical benefit out of it for AI over Ruby. I learned a lot from exploring Clojure personally – I particularly liked the idea of identity as a series of values over time – but I don’t work in the JVM ecosystem, and so I haven’t actually done anything with the language in 10+ years… The concepts I learned from playing with it were more useful than the language itself to me.









    • Sandbox a general computer security term for a limited area that untrusted code can operate in. Essentially, think of an unruly kid – it’s allowed to play in its sandbox and could make a big mess there, but it shouldn’t be able to mess up the rest of your house if it’s only allowed to play in the sandbox.

    • Site Isolation According to this post from 2021 on Mozilla’s blog, “Site Isolation” is the term they picked for loading different websites in different OS processes. As an ELI5… maybe think of it like moving from sites being in the computer equivalent of neighboring apartments to being in different buildings? IRL, you’re supposed to have a certain amount of privacy and security in your apartment but there’s limits because of the physical construction… A half decade or so ago, people figured out that you can do the equivalent of sticking your ear against the wall to try to hear what people were saying in the apartment next door; it’s more challenging to do that if you’re in the digital equivalent of a different building…

    • Total Cookie Protection Metaphorically speaking, websites can tape a name tag (“cookie”) to your jacket without you noticing. That includes not just the direct operator of the site (who use cookies like that to keep you logged in) but also other people like advertisers on the site. In the old way of handling cookies, whoever stuck that name tag on your jacket can read it, so advertisers could figure out the equivalent of “Oh that’s Bob – he just went to Walmart, and then the bank, and now he’s at a swap meet looking at used manga.” if they were advertising on all those sites. “Total Cookie Protection” as Mozilla calls it is basically changing your jacket for each place you visit. Bob has a jacket for Walmart, a jacket for the bank, and a jacket for the swap meet. The advertiser can tell if Bob’s been to those places before – the metaphorical name tags are still on each one – but doesn’t know it’s the same Bob who was just at the bank since he changed his jacket.

    • First Party Isolation seems to be an older name for a similar idea brought back into Firefox from Tor Browser. “Total Cookie Protection” seems to be Mozilla’s marketing of it when they enabled it by default, as far as I understand it? (There may be other features of it that I don’t understand though.)

    • Multi Account Container Going back to my name tag and jacket metaphor again, this is a feature that lets you have essentially multiple jackets for the same place that you can choose between. You can have your work clothes and your personal clothes and pick which is appropriate for the situation, metaphorically speaking. Particularly useful if you have multiple webmail/social media/whatever accounts from the same provider and want to stay logged in to all of them.



  • Sichuan pepper provides a numbing effect. It’s usually combined with spicy chili to make the Chinese “mala” taste.

    The numbing effect was the most memorable part of my experience of trying tantanmen when I was in Japan a long time ago; I hadn’t encountered Sichuan pepper before that, so it was quite surprising!

    If you’re getting the numbing effect then there’s some mixed into one of the ingredients you used. If not, you’re missing out on an interesting ingredient that you can use in the dish.