10 ms·
Perhaps a bit awkwardly named but nice: > bun --smol is a new CLI flag which configures the JavaScriptCore heap size to be smaller and grow slower, at a cost t
by dsissitka 3y ago
Perhaps a bit awkwardly named but nice:
> bun --smol is a new CLI flag which configures the JavaScriptCore heap size to be smaller and grow slower, at a cost to runtime performance. This is useful for running Bun in memory-constrained environments.
From the example they gave (https://i.imgur.com/IDHTaAh.png https://i.imgur.com/IDHTaAh.png):
Bun 343 MB
Bun with --smol 54 MB
Node.js 138 MB
- traspler 3y agoI like it :) as long as there are clear descriptions and docs there could be more whimsy in software
- jahsome 3y agoGo nuts, but please make your silly stuff an alias if you must.
- xmcqdpt2 3y agoWait, who decided all software is now Entreprise Edition (EE (tm)) focused?
- jdrek1 3y agoThis has nothing to do with enterprise, it's about accessibility. For most people on the planet English isn't even the first language and now you expect them to know about obscure wannabe-cutesy internet slang? Fuck that shit, what's next? UWU.md instead of README.md?
- dmit 3y agoA --small flag would provide approximately the same amount of information - you'd still need to read the description to figure out what it does. And thanks for the UWU.md idea, love it!
- chaosharmonic 3y ago[Scruffy voice] Second. I'm writing out a bunch of notes for a technical screen in an UWU.md file right now (even if I'm definitely not shipping it to them like that)
- AntonCTO 3y agoEnglish isn't my first or even second language. --smol creates a lot of confusion in my head. It doesn't even make any sense. Why not --less-ram or similar? What does UWU means? Why using an artificial language instead of established one?
- __s 3y agoUwU is a cute looking face which also sounds funny when pronounced https://en.wikipedia.org/wiki/Uwu https://en.wikipedia.org/wiki/Uwu
- deleted 3y ago[deleted]
- Timon3 3y agoTo me, --small gives much more information. I immediately assume that it means something is smaller than the default, memory makes immediate sense. --smol on the other hand could be an acronym or a technical word I just don't know, the likelihood of random internet slang actually being one of the first interpretations seems low for most engineers. Let's turn this around. If the flag was called --cutesy-wootesy-fartsy, would you still argue it's approximately the same amount of information? If not, can you explicitly explain why not?
- soulofmischief 3y agoPeople like you make me want to code only in Brainfuck. This sort of gatekeeping over programming culture and aesthetic is only causing the community to further splinter between people with sticks up their asses and people who just want to have fun and enjoy life.
- AntonCTO 3y agoI don't see the limits in your ignorance. Bad names doesn't have anything in common with programming culture or aesthetic.
- soulofmischief 3y agoThe notion of a "bad name" is evidence of aesthetic gatekeeping. You can sometimes say something is objectively bad: You shouldn't name your class `Car` if it models a boat. It's unrelated. However to argue about "small" vs "smol" is a matter of pedantry. And it's further trivialized by the fact that "smol" is part of a well-established lexicon of a large demographic. Eventually you'll see it in Merriam-Webster. But if the argument is "it must be in Merriam-Webster", that's textbook gatekeeping.
- Volundr 3y agoTIL I have a stick up my ass. I'm US born and didn't know what smol was until today so I'm not sure I buy the "large demographic", but it's always possible I'm out of touch. Personally yeah I think it's better as an alias. I'm actually all for having fun with programming, but if you want your product to be useful you have to consider your audience. I'm much more likely to stick a joke name on an internal facing function, where I've got a strong reason to believe that everyone who sees it will be in on the joke. Or a piece of software that is itself for fun. Something that's meant for actually getting work done should generally not use naming that gets in the way of that. > The notion of a "bad name" is evidence of aesthetic gatekeeping. I mean that's objectively not true. You even provide an example in your next paragraph of a bad name. Another would be taking using md5s of descriptive names and using that. I mean md5 is broken and reversing it is fun and nerdy right? When talking function names and program arguments, names which convey their purpose are better than those that don't. It's not gatekeeping, it's designing effective interfaces.
- __s 3y agoIf weebs are in, then I am out. Consider this my final farewell. Mods don't even ban AYAYA anymore. 40 year old men thinking they are little anime girl. Thinking they are cuties
- xmcqdpt2 3y agoWhy not? The audience is people who are deploying JS apps. Such people likely have access to the internet and are able to google "smol" if they want to know what it means. I'm not a first language speaker of English either, the system language on my phone is not English, if I google "smol" it immediately give me the translation into my system language. It takes no time at all.
- jahsome 3y agoWant to try again without a straw man?
- lolinder 3y agoMaybe I'm dating myself, but it took reading these comments for me to figure out that "smol" is pronounced "small" and not "es em oh el". Only after that did I think to Google it and find the dictionary.com slang entry [0]. If some significant portion of the user base is as slang-ignorant as I am (for example, most who speak English as a second language!), it'd be good to support both --small and --smol for mnemonic reasons. Remembering a series of letters that have no meaning to you is much harder than remembering a word that obviously relates to what you're trying to accomplish, and if I had landed on the bun docs first I would have continued pronouncing it "es em oh el". [0] https://www.dictionary.com/e/slang/smol/ https://www.dictionary.com/e/slang/smol/
- Inviz 3y agogives some strong early node.js vibes with all the precious and quirky naming schemes
- 130e13a 3y agodo you have any examples from node.js?
- tehbeard 3y agoReally odd since the logo design is around a pastry rather than a rabbit to mix such memey naming conventions.
- paxys 3y agoThis is cool but I'm struggling to think of a case where I'd want to run backend JavaScript in a memory constrained environment, doubly so where performance isn't a concern.
- rafram 3y agoYeah, and how is this different from the behavior V8/JavaScriptCore would already have on a system with very little memory? Unless this actually makes it possible to run on lower-memory systems than before, I don’t really see how it’s helpful. Unused memory is wasted memory and all that. I hope it’s using every last byte, not letting memory sit unused.
- afavour 3y agoUninformed spitballing here but I can totally imagine brewing up an eInk display that grabs X from the internet then draws something via the Canvas API. JavaScript would probably be a fine solution for that.
- KronisLV 3y ago> This is cool but I'm struggling to think of a case where I'd want to run backend JavaScript in a memory constrained environment, doubly so where performance isn't a concern. Maybe launching lots of separate services/containers locally, just to have the ability to debug everything and step through how a request travels through all of the services in one go, with multiple IDE instances also open locally, in addition to other stuff? Distributed tracing is nice for remote environments, but having 5-20 IDE instances open with all of the related services can also provide a nice debugger experience. Not every machine has ample RAM for this, though, so I guess it's nice to have the option, without the processes/containers running into OOM so much?
- btown 3y agoFull process/container isolation for many instances of untrusted code, perhaps? A serverless PaaS could use this to cut down significantly on the frequency of cold starts, all else being equal.
- TheDong 3y ago