Conversation
Notices
-
p (p@freespeechextremist.com)'s status on Friday, 04-Oct-2019 07:09:48 JST p @kakol @PussySlayer @TheMadPirate If that were true, it would at least make some sense. Here's a screenshot that demonstrates what's actually going on, and it's way hairier and crazier.
caststring.png- Tamamo repeated this.
-
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Friday, 04-Oct-2019 07:41:11 JST Tamamo @p @kakol @PussySlayer @TheMadPirate
i didn't really like javascript before this, because people keep trying to use it for server side stuff (smh my head)
but now im really done with it because of lack of any consistency
image.png -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Friday, 04-Oct-2019 07:50:36 JST Tamamo @TheMadPirate @PussySlayer @kakol @p
when empty array equates in a one line comparison to a string with the character "0" within a string, our coding philosophy is certainly broke -
p (p@freespeechextremist.com)'s status on Friday, 04-Oct-2019 08:05:41 JST p @rawrrawrfox @PussySlayer @TheMadPirate @kakol Ha, you wanna see some "P & !P"? This one's my favorite:
f = [0];
f == f;
f == !f;Tamamo repeated this. -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Friday, 04-Oct-2019 08:08:48 JST Tamamo @p @PussySlayer @TheMadPirate @kakol
i am losing brain cells... send hepl
sonic_sad.png -
p (p@freespeechextremist.com)'s status on Friday, 04-Oct-2019 08:11:31 JST p @rawrrawrfox @PussySlayer @TheMadPirate @kakol QUIT CRYING OR BRENDAN EICH WILL MAKE IT WORSE
[1,3,1000,2].sort()Tamamo repeated this. -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Friday, 04-Oct-2019 08:15:36 JST Tamamo @p @PussySlayer @TheMadPirate @kakol
1,1000,2,3.....
i knew js was bad, but i had no idea it was this bad
image.png -
p (p@freespeechextremist.com)'s status on Friday, 04-Oct-2019 08:21:32 JST p @rawrrawrfox @PussySlayer @TheMadPirate @kakol Incidentally, this is how '==' works: http://es5.github.io/#x11.9.3
x=[[]]
++x[+[]]
console.log(x)
++x
console.log(x)Tamamo repeated this. -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Friday, 04-Oct-2019 08:28:00 JST Tamamo @p @PussySlayer @TheMadPirate @kakol wow print(""==0)print([]=="")print([]==0 && 0=="0")print([]=="0")// true// true// true// false
-
p (p@freespeechextremist.com)'s status on Friday, 04-Oct-2019 08:59:57 JST p @TheMadPirate @rawrrawrfox @PussySlayer @kakol Brendan Eich was getting yelled at by coked-out execs to add features without sleeping for a week so that they stayed ahead of IE, and every mistake that shipped was set in stone forever. Tamamo repeated this. -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Saturday, 05-Oct-2019 00:13:47 JST Tamamo @p @TheMadPirate @PussySlayer @kakol i vote lua for javascript replacement -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Saturday, 05-Oct-2019 02:16:57 JST Tamamo @TheMadPirate @PussySlayer @kakol @p
if we lived in a perfect world maybe javascript could behave more like the emulated lua code on this page
https://fengari.io/ -
Tamamo (rawrrawrfox@pl.smuglo.li)'s status on Saturday, 05-Oct-2019 07:23:43 JST Tamamo @p @PussySlayer @TheMadPirate @kakol
hmm, for the time being it might be more achievable via a browser plugin which blocks all javascript, with the exception of the javascript code which it injects into every page, and the injected code would be something like fengari, which emulates lua.
other than that there is a luakit project which doesnt let a browser run lua (i dont think so at least), but instead gives advanced control over the webkit via lua scripts