arkadiusz, to analog
sirber, to javascript
@sirber@fosstodon.org avatar

Nice! #bun #javascript runtime works on non AVX2 cpu now!

hongminhee, to node
@hongminhee@todon.eu avatar

#Fedify's tutorial, which previously assumed you were using #Deno, can now be followed using #Node.js and #Bun! (What is Fedify? It's an ActivityPub server framework.)

However, they are written for Fedify 0.8.0, which hasn't been released yet. You can test it with the pre-release version, 0.8.0-dev.164, though.

https://unstable.fedify.dev/tutorial

#fedidev #ActivityPub

farcaller, to random
@farcaller@hdev.im avatar

Some really interesting engineering behind bun's new crash reporter: https://bun.sh/blog/bun-report-is-buns-new-crash-reporter

bunnimal, to Rabbits
@bunnimal@mastodon.thirring.org avatar

this is how buns transfer the shared braincell, btw

#bun #bunny #bunnies #rabbit #rabbits #bunniesofmastodon #rabbitsofmastodon

film_girl, to random
@film_girl@mastodon.social avatar

Latest episode of The Download is out, this one covers all the news, updates on GitHub Copilot for the CLI, big new releases from and and of course, Beyoncé https://www.youtube.com/watch?v=TrqiT_a8zgU

aral, to programming
@aral@mastodon.ar.al avatar

Me: Hmm, maybe I should look into Bun again and see how its Node.js compatibility is coming along.

Also me: I wonder who makes Bun…

Me, yet again: Ah, it’s a venture-capital funded startup called Oven (see what they did there?)

Finally, me: rm -rf ~/.bun

(Remember, kids: Venture capital is the fart that precedes enshittification. It’s best not to linger once you’ve caught a whiff of it.)

hongminhee, to fediverse
@hongminhee@todon.eu avatar

Today 0.5.0 was released, and with this version, it comes support for Node.js and ! It's available on both JSR and npm:

https://jsr.io/@fedify/fedify@0.5.0
https://www.npmjs.com/package/@fedify/fedify/v/0.5.0

nosherwan, (edited ) to javascript
@nosherwan@fosstodon.org avatar

:nodejs: :javascript: :typescript:

State of JS Runtime

I suggest we have a new survey similar to state of JS called state of JS runtime, to get an idea of which runtimes are most popular in the industry & what are they being used for. (its merely a question in StateOfJS)






🙋🏽‍♀️
Which runtime do you use & for what purpose?

louis, to javascript
@louis@emacs.ch avatar

To Bun or not to Bun? I had a look at the latest iteration of JavaScript runtimes, written with Zig and powered by Apple's JavaScriptCore engine.

It looks attractive and implements a Go-like toolchain, which is simple to use, fast and cares about everything (runtime, compilation, bundling, package management etc.). And also, Bun is really fast, mostly on par with Go in the area of backend web dev.

However, following the number of bug, memory leak and security-fix releases, basically every few days, it follows the unfortunate rat race philosophy of the JS ecosystem by forcing you to constantly update. How likely is it that Bun code written today will just work in a year or two without modification.

If you use Bun for production purposes, I would be interested in real life experiences.

#bun #javascript

bunnimal, to Rabbits
@bunnimal@mastodon.thirring.org avatar
bunnimal, to Rabbits
@bunnimal@mastodon.thirring.org avatar
hyc, to programming
@hyc@mastodon.social avatar

Simple, efficient, ultra-fast, scalable data store wrapper for #LMDB

https://github.com/kriszyp/lmdb-js

This is an ultra-fast #NodeJS, #Bun, and #Deno interface to LMDB - leaves all other DBs in the dust. Your screen isn't wide enough to show how fast it is...

kubikpixel, (edited ) to rust German
@kubikpixel@chaos.social avatar

deleted_by_author

  • Loading...
  • mo8it,
    @mo8it@fosstodon.org avatar

    @kubikpixel BTW, I can't understand how "manual memory management" and "simplicity" can be two features in the same language. I think that this is shortsighted.
    Add as much sugar like defer as you want, but in the long term, your software will end up being unreliable and segfault a lot like #Bun (written in Zig).

    Just take a look at how many Bun issues there are related to SEGFAULT:

    https://github.com/oven-sh/bun/issues?q=is%3Aissue+is%3Aopen+segfault

    SEGFAULT is very harmless compared to other memory issues.

    changelog, (edited ) to github
    @changelog@changelog.social avatar

    🗞 New episode of Changelog News!

    🖥️ Alex Ellis’ new batch-actions project
    📑 DevDocs is a one-stop shop for API docs
    🐢 @jarredsumner announces Bun Shell
    👟 Shoelace by @claviska
    😮‍💨 Martin Heinz' DIY CO2 monitoring system
    🎙 hosted by @jerod

    🎧 https://changelog.com/news/78

    #github #documentation #api #bun #bunjavascript #scripts #webcomponents #webdev #prometheus #grafana #news #podcast

    michabbb, to languagelearning German
    @michabbb@vivaldi.net avatar

    The Bun Shell is a new experimental embedded and interpreter in that allows developers to run cross-platform in and . It allows developers to use JavaScript variables in shell scripts. All template variables are escaped for security. The Bun Shell works on , , and . It is designed as a drop-in replacement for simple shell scripts.

    https://bun.sh/blog/the-bun-shell

    angelmunoz, to javascript
    @angelmunoz@misskey.cloud avatar

    Is there an html tagged template library to render html on the server? I'm currently exploring @ lit-labs/ssr but I'd like to be aware of alternatives
    Note: I don't need hydrate or client stuff, just a plain html string to string/stream/etc templating library

    equineonline, to Rabbits
    @equineonline@mstdn.social avatar
    ryguw, to php

    A programming language benchmark that includes many of my favorites: #c

    Check out that graph. The results surprised me a little bit. https://github.com/attractivechaos/plb2

    bunnimal, to Rabbits

    I refilled the hay and Medolie left to eat
    he's snoozing too deeply to notice

    #bun #bunny #bunnies #rabbit #rabbits #bunniesofmastodon #rabbitsofmastodon

    bunnimal, to Rabbits
    toxi, to CSS
    @toxi@mastodon.thi.ng avatar

    Some previews of recent #ThingUmbrella updates/additions:

    1. The declarative & fully typed CLI arg parser https://thi.ng/args now has a nice cliApp() wrapper (also largely declarative), supporting multiple sub-commands (with shared and command-specific args/options), automated usage generation, https://no-color.org support/detection. Still doing more testing with various CLI tools of mine (from which this all has been extracted), but planning to release in next couple of days...

    2. People who've been following the project will know that for years I've been a big fan of Tachyons CSS[1], which is pretty much used for all ~150 examples in the repo. As nice as it is, it's also unmaintained by now and there're various more modern features missing (e.g. grids) and there're also general issues with the overall approach. Switching to Tailwind would mean having to install a whole boatload of additional tooling so is anathema and also doesn't address some of the features I've been wanting to explore: E.g. Generating entire CSS frameworks from a bunch of wildly combinatorial rules, options & lookup tables, keeping literally everything customizable, combinable and purely data-driven (i.e. generated from a JSON file). Similar to Tachyons CSS, these custom generated frameworks are based on standalone CSS utility classes (hence the original particle-inspired naming). However, I'm aiming for a different usage and instead of assigning them directly to an HTML element's class attrib, here we can assign them to (nested) CSS selectors to define fully inlined declarations. The additional killer feature is that each of these classes can be prefixed with an arbitrary number of freely defined media queries and thus making it trivial to add additional responsive/accesible features and without requiring megabytes of raw CSS to cover the combinatorial explosion!

    For the past few days I've been trialling this new approach and I very much like where this is going... Take a look at the basic example in the new https://thi.ng/meta-css package & readme. I will also write more about this in coming days. All in all, it's another example where code generation and a domain specific language approach is super powerful again... limits of my world and such...

    Also, speaking of bloatware (earlier above), the entire toolchain (incl. CLI & all dependent packages) is a mere 21KB (minified) and it already can do a ton!

    #ThingUmbrella #CSS #CLI #DSL #TypeScript #JavaScript #CodeGeneration

    Excerpt screenshot of the thi.ng/meta-css readme (link in the toot), explaining basic tool usage and showing the compact MetaCSS source code
    Excerpt screenshot of the thi.ng/meta-css readme (link in the toot) showing the final generated CSS output (approx. 80 lines)

    toxi,
    @toxi@mastodon.thi.ng avatar

    Just updated & simplified the https://thi.ng/meta-css tooling to also use JSON as interim representation for the generated CSS framework definitions. The metacss convert command now also acts as bundler, deduplicating CSS selectors, combining rules and media query criterias from multiple meta-stylesheets and optionally including arbitrary CSS (e.g. normalize.css as a sane starting point). More features since yesterday, but total tool bundle size (incl. all deps) has shrunk to 19KB!

    I've updated the readme with an expanded example and updated instructions (should you want to try it out, even though it's still pre-release...):

    https://thi.ng/meta-css

    Next step: Add file watching and auto-regeneration. This should be pretty easy, thanks to Bun's built-in file watcher API:

    https://bun.sh/guides/read-file/watch

    #ThingUmbrella #CSS #CLI #Bundler #TypeScript #JavaScript #WebDev #Bun

    tristan957, to zig
    @tristan957@fosstodon.org avatar

    Writing my first code, and I can already tell this is going to be a struggle. So much syntactic sugar. Makes look easy to write in comparison.

    All I want is a better C. So far seems like the winner there.

    still takes the cake as the worst language I had to write today. Though shoutout to the Perl fediverse community for being helpful people!

    Stark9837,
    @Stark9837@techhub.social avatar

    @tristan957

    Do we really need and has it only become relevant due to using it?

    I myself am very reluctant to learn and use it and would rather wait for something like . I don't think I want all the drama the community kicks up once a week.

    bunnimal, to Rabbits
    bunnimal, to Rabbits
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • anitta
  • InstantRegret
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines