re: browser engines
@aescling technically it is not “tail call optimization” but “proper tail calls”, meaning that tail calls can’t overflow the stack, but they don’t have to be any faster than other calls (some complain PTC is actually harder to optimize)
re: browser engines
@wallhackio proper tail calls are only a thing in strict mode, which can't be set in functions which take default parameters, so i threw an IIFE around it
re: browser engines
@jamey i’d be very interested in <https://bun.sh/>, which is built on JavaScriptCore instead of V8, because i do think JSC is generally the better runtime (well, and i don’t like Google)
but unfortunately i don’t care at all about the kind of development they are targeting and my needs are much better served by Deno
re: browser engines
@jamey no, i mean webkit (well, JavaScriptCore)
webkit has implemented PTC for ages: https://webkit.org/blog/6240/ecmascript-6-proper-tail-calls-in-webkit/
chrome implemented in V8, but refused to ship, and eventually removed: https://v8.dev/blog/modern-javascript#proper-tail-calls
firefox bug is very sleepy: https://bugzilla.mozilla.org/show_bug.cgi?id=723959
more of a summary here: https://www.mgmarlow.com/words/2021-03-27-proper-tail-calls-js/
@wallhackio pivot to ruby, then you can have an ecosystem which is neither large nor good
re: browser engines
; { const sum = (() => {"use strict"; return (x,i=0) => x === 0 ? i+x : sum(x-1,i+x)})(); sum(5000000) }
Works On My Machine
tech culture
heaven forbid one of those implementations be open source because then it will within a year be held together by the struggling efforts of an unrecognized generally good queer weirdo despite the fact that the original code was written by a friend of a literal nazi, and then it becomes impossible to tell whether supporting it is good or not
tech culture
“i’m so genius i made a thing which thousands of people use” no, you’re trash and your thing is trash, you’re just popular
tech culture
it’s very depressing working in a field full of shit standards which only exist because some startup bro spent like a weekend throwing it together and it took off on twitter and now there are five interoperable implementations which no competitor will ever be able to usurp
“scripting languages”
the language discourse has somewhat faded (not entirely tho, as evidenced by the whole “typescript is better than javascript” crowd) but the “real programmers don’t write scripts they develop Frameworks and build Applications” sentiment absolutely hasn’t
prrgrrmmng
oh i bet this is why it is slow https://git.ladys.computer/Shushe/commit/88823523127972944771746f48bc2838e0317d31
@coriander communism
prrgrrmmng
hope to have the source code up sometime this weekend
but before doing that i at least need to write a README for it
Administrator / Public Relations for GlitchCat. Not actually glitchy, nor a cat. I wrote the rules for this instance.
“Constitutionally incapable of not going hard” — @aescling
“Fedi Cassandra” – @Satsuma
I HAVE EXPERIENCE IN THINGS. YOU CAN JUST @ ME.
I work for a library but I post about Zelda fanfiction.