One of the reasons why I do make the effort to learn Perl despite Python seemingly being more common these days*, is because regexes are a lot nicer to use in Perl
* Source: I asked a bunch of computer touchers whether they have any Perl scripts in their infrastructure and they said they rewrote them in Python
@vaporeon_ javascript regex should be good but its clunky
@vaporeon_ reported.
also they almost always use node.js (even though Deno is 1000000000% better)
@vaporeon_ that's typically used to embed javascript in a videogame engine but you could use it for a backend, especially if you need something lightweight (and are also using javascript??????)
@wallhackio Why are they using something different for regular "JavaScript on the computer" purposes? What is the advantage of the heavier programs (Deno and NodeJS)?
@vaporeon_ javascript is only "fast" when its heavy. if you make it lightweight then its going to be slow as fuck
NodeJS and Deno are built on V8, the engine that google chrome uses. I believe Bun uses JavaScriptCore
Duktape, in order to keep its footprint light, doesn't implement most modern javascript featues starting from 2015
@wallhackio I see
So I can't run Deno on 32-bit PowerPC either, because that's not supported by V8...
@wallhackio Thanks for the information, but also
I hate JavaScript even more now
@vaporeon_ reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported reported
@wallhackio Write a JavaScript to automatically report me whenever I mention JavaScript
@vaporeon_ i love javascript but its only practical on modern architecture
i dont know why anyone would ever use it for any embedded situation. that is a horrible idea in my opinion but game developers do it anyway so they can employ their web developers to build their UIs
(battlefield 1, a game i love, used react to make their game UI and the battlefield 1 UI has softlocked my game dozens of times because this is a horrible idea that barely works)
@wallhackio My PowerBook G4 is from 2005, it has 1.5GHz CPU and 1GB of RAM
That's a modern computer that can run Linux and C and GTK just fine (though OpenGL is broken for whatever reason...)
Why can't I run JavaScript on it
filthy, disgusting lie
@vaporeon_ cause javascript sucks
@wallhackio That is not a lie, that is The Truth
@vaporeon_ no, The Truth is that clodsire is a whale
@wallhackio Clodsire is a whale who for incomprehensible reasons likes JavaScript
@vaporeon_ its like C but with closures, functions as first class objects, and very poor language design :]
@wallhackio If it is like C, why don't I get struct
, enum
, and data types?
@vaporeon_ I should have said that the syntax is C-inspired
@wallhackio The same is true of Java, and I don't like Java
@vaporeon_ yeah java is stinky
@wallhackio Also, what does "functions as first-class objects" mean? I can also pass a function pointer anywhere in C, just writing down the type for it is slightly annoying (and that's why you use typedef
)
@vaporeon_ it means a function can be passed directly to another function, or a function can return a function
@wallhackio That is neat! Like in Haskell
@wallhackio Whale is a mammal that evolved to live in the water, and then Clodsire grew paws to live on land again...
@vaporeon_ we had to write javascript somehow
@vaporeon_ I'm not sure I should have said that Duktape is "usually used to put javascript in game engines". I only said that because I know that game developers actually do this (for some reason) although I don't know what embedded engine they actually use
@wallhackio What about Duktape?