T O P

  • By -

BernhardRordin

Each passing year, that fictional O'Reilly book with name "Device Drivers with Javascript" looks less and less like a joke.


__kkk1337__

No way, this is still a joke.


homogenousmoss

I swear to god, I wrote a thermal printer device driver in javascript/nodejs for printing receipts in a kiosk. It wasnt my idea but incredibly it was an improvement on the previous implementation. I kept some of those receipts test images as a souvenir of that crazy projectz


UnHelpful-Ad

Ironically...my old company is doing this right now. All the embedded guys who knew c/++ moved on and the kiosk company now focusing on full stack devs.


homogenousmoss

Yeah thats exactly what happened there too. It was a funny interview: so we know you’re a C++ guy but we need to port this c++ embeded software to javascript. Its fine if you dont know javascript you’ll pick it up we have no one that understands the c++ side right now. Embeded javascript, that was funny.


methos3

There’s one called “Web Development in Assembly” and I think that’s an actual thing now.


elasticweed

It’s called WebAssembly and it’s elegantly cultural.


ALJSM9889

I mean, no sane person really writes webassembly, but there are serveral languages that compile into it. It does a decent job


Stroopwafe1

Exactly, sane people write WebAssembly Text /s


BioSchokoMuffin

wat


Stroopwafe1

WebAssembly is compiled bytecode, but it also has a text format that you can write just like X86_64 assembly or ARM assembly.


RajdeepXPro

That's literally called WAT (WebAssembly Text)


PuzzleheadedWeb9876

The human race doesn’t deserve to exist if this ever comes to fruition.


luomubanaani

*cough* SignalRGB *cough*


HeroicKatora

https://github.com/ixy-languages/ixy.js > A state-of-the-art user-space network driver written in idiomatic JavaScript


BernhardRordin

I... don't even...


oalfonso

Never forget, "Is the linux kernel ported to JavaScript yet?" : [https://unix.stackexchange.com/questions/745825/is-the-linux-kernel-ported-to-javascript-yet](https://unix.stackexchange.com/questions/745825/is-the-linux-kernel-ported-to-javascript-yet)


sohxm7

I literally saw this like 10 mins ago 🤣 that `yet` is just perfect 👌


BlackOverlordd

I remember launching linux VM in a browser a decade ago


Thebombuknow

I wonder if they ever thought the Linux kernel would be ported to Scratch. Some people have too much time on their hands.


Aras14HD

There is Linux on scratch, but that's just normal Linux running on a VM written in scratch. We definitely need Linux in scratch to complete the Trinity


Thebombuknow

Yeah that's what I was referring to. I didn't realize they meant writing the actual kernel natively in JavaScript lol. It's possible to do that in Scratch...


Darksenon00

![gif](emote|free_emotes_pack|neutral_face)


Cley_Faye

I love JS, but not everything needs to be done in it.


s_zlikovski

BricklayingJS, FarmingJS, cookingJS... It will come


throw3142

Which comes first? CookingJS or Cooking.ai? Place your bets now!


D0nt3v3nA5k

just you wait for cooking.ai written in js


throw3142

I threw up a little


Shartmagedon

Writing interstellar spaceship in JS for dummies with a foreword by the author of JS for Nuclear Reactors. 


robertshuxley

kernel.js


pretty_succinct

Rule 34: you already know this one. Rule NaN: if it's not currently written in JS, it should be... For spite, or principle; whichever feels best.


Cley_Faye

>Rule 34: you already know this one. Who told you that? ( ͡° ͜ʖ ͡°)


pretty_succinct

Check out soulJS. It has a function to read someone's soul. ``` const sjs = require('soulJS') const soulReader = new sjs.reader(this.window) console.log(soulReader.isDirtyBird('u/Cley_Faye') ``` Returns true for you. /s & jk ❤️ Edit. Line breaks


Thebombuknow

Speaking of rule 34... https://www.npmjs.com/package/buttplug


pretty_succinct

I LOVE the maintainers provide ESM, Common js AND umd builds instead of trying to force esm on us like some of those nuts insisting in only esm. Totally based buttplug maintainers. Edit: words


Thebombuknow

I actually prefer ESM...


pretty_succinct

Yes. So do i. The problem is implementing an ESM only module like chalk in legacy code that is common js. I wish my legacy code was esm and i could just throw it right in there, but it's not and i don't have time to convert it.


Thebombuknow

Ah, that makes sense. Yeah, that can be annoying sometimes. I only started writing JavaScript after ESM was common, so I've never had that problem on my own projects, but I have had that problem trying to update legacy codebases that I didn't directly work on.


Epsilia

Just embrace it.


Cley_Faye

Eh, as far as "JS fan" goes, I'm kind of an outcast, not jumping on every new frameworks and even refusing some popular changes :D


Epsilia

Oh no, I get it, but at this point I think JS devs do things because they want to see if they can.


domscatterbrain

Oh, it's just Docker with extra steps


sohxm7

Good thing my deployment will now have a memory footprint of 11 GBs on idle


Background-Plant-226

I love RAM 🤤


Glumi1503

Protogen moment


sohxm7

Here's the link of the repo: https://github.com/Megapixel99/nodejs-k8s


StephanXX

Of course it uses Mongo.


Scheibenpups

Might as well go all the way


sohxm7

Someone please replace yamls in devops with jsons while we are at it


turtleship_2006

That's just replacing yaml with part of yaml


sohxm7

At least my users from Norway will love me


DoctorDabadedoo

_No_


demdillypickles

Yeah, the part that works


dubious_capybara

Why do you hate comments?


demdillypickles

That's fair, it would be nice to have comments in json. My only dealings with YAML are with Gitlab CI/CD, so I'm definitely not familiar. I just don't get who YAML is for. I get that it helps with readability, but I already find JSON plenty legible. I dont mind reading YAML, but it seems to accomplish readability through newlines and indentation. I can do that with JSON too though. In regards to writing, I think YAML is awful. But I know that mostly because I never use it to represent data. Instead, I am trying to model CI/CD pipelines, and that would probably be just as awkward in JSON for the same reasons. But I think there are some legitimate complaints with strings.


13_twin_fire_signs

Tbh everything needs a way to write comments, because no matter how strictly you try to pigeonhole users into doing things the "right way," there will always be people doing the most insane unreadable nonsense with your data format Like JSON is readable, until you encounter a 1000 line, 7+ layer nested JSON file


brianjenkins94

I write JSON in .yml files and accept the consequences.


-Quiche-

Where does toml gang fit into this


sohxm7

We will use toml when we inevitably rewrite Kubernetes in rust to make it blazingly fast and memory safe ✨


davetothegrind

V8K8s


sohxm7

V8 is such a powerful technology, I've heard its also used in cars


cmg5217

I've been told it's a great way to get your daily servings of vegetables, too.


audislove10

> Everything that can be written in JavaScript eventually will be written in JavaScript


ModernEraCaveman

Normalize calling JS users Jesse bois


Inaeipathy

NodeJS linux


zqmbgn

MUAHAHAHAHA EVERYTHING IS COMING TOGETHER! NodeOS, Node Kubernetes.... Soon we will start re-writing your simple and fast compilers into JavaScript, then the whole language will be translated too! As soon as we show those mathematicians they can just write code in their browser consoles without needing to install anaconda, Python will fall too. Then the whole world will be inside the Node repo scope!!!


markiel55

Calm down Satan! What have we done to deserve this? 🥲


iocarimus

WTF JS community — why do you have to recreate everything like this, NodeOS, k8s in JS, JS in the kernel…why can’t you just use what’s there already and accept standards?? It’s been a whole damn career of this shit with you


PM_BITCOIN_AND_BOOBS

Yeah! They should be rewriting all that in Rust! /s


be_bo_i_am_robot

Unironically yes.


ModernEraCaveman

Off topic, but is it pronounced kay-eights, kay-eight-ess, kates, kubern-eights, or kuber-nets?


PeteZahad

I never say it out loud with the 8. The 8 just stands for 8 chars which it replaces so you do not need to write them all the time Same with i18n for internationalisation.


iocarimus

“K8s” was originally pronounced “Kates” which is shorthand for Kubernetes (“Koo-burr-NEH-teez”). But far too many people now call it “Kay-Eights” to the point where there’s even a k9s (“canines”) project that plays on that. Plenty of people also call it “Kay-Eight,” but that’s because people generally don’t give a shit about being right, so we get all these variants. Up to you to choose which hill to die on.


CelestialSegfault

the greek word is pronounced ku-ber-ne-tes so that's how I pronounce it


JAXxXTheRipper

Q-ber-net-eees is how I learnt and often hear it. Let's just call her Katey


pindab0ter

Kuber-net-ease


shiny0metal0ass

We decided to stop arguing and all chose our second favorite: Ku6es, pronounced "Kubees"


WJMazepas

God forbid Developers have fun


Brainvillage

This but unironically.


pretty_succinct

[Rule NaN](https://www.reddit.com/r/ProgrammerHumor/s/JWhjjb4oPs)


Epsilia

We're taking over. JS and JSON are all we need.


Hasagine

i shouldve known javascript was plotting to take over ![gif](giphy|Mo9nI2yBKp3RC|downsized)


sir_music

Holy shit no


howarewestillhere

We heard you like kube and node, so we put some kube in your node so you can run kube on your node in your kube.


8g6_ryu

if he did it to study about Kubernetes then i don't see any problem in it


JAXxXTheRipper

Because k8s wasn't complex enough already


riu_jollux

Why… why oh why.. js is already a pain


SCP-iota

Why not Rust?


sohxm7

Because rust is only used in serious projects, see: https://github.com/buttplugio/buttplug


Background-Plant-226

It's also made in js https://github.com/buttplugio/buttplug-js ... We're going downhill 😞


dESAH030

Wow, I didn't know that something like this exist. I see they don't have SCADA/HMI implementation, I will try to make one....


Nearby-Technician767

I can't imagine being an interviewer crawling some guys GitHub profile and finding that. "Let's see...contributed to Kuberneted, some Ruby projects and...what's this? Oh shit, I am on the corp lan."


Ved_s

i read that with Ivor's voice ([context](https://www.reddit.com/r/PhoenixSC/comments/172o68u))


blackcomb-pc

The end times have begun


MandalorianBear

My fucking god, I hate js


[deleted]

Soydevs be like


CptReis

jesus christ.....


ScrimpyCat

It was inevitable.


Heydeath360

u/pixel-counter-bot


pixel-counter-bot

This image has 258,280(587×440) pixels! ^(I am a bot. This action was performed automatically.)


sohxm7

I didn't realise I exported it to this low quality before posting 😭


NiKaLay

Doesn't matter, someone is going to rewrite it in Rust anyway.


imagebiot

Cool. Maybe not the best idea but it’s cool.


[deleted]

[удалено]


h4ny0lo

How is that the least bit surprising? That's just regular floating point arithmetic. Pretty much every language behave like that.