I'm gonna try #Svelte, with SSR, for also the backend. The database will be #postgresql with the GeoGis extension, since I'll be handling GPS data. The ORM will be #knex, a query builder with migration support.
All of course in #typescript ! With #bunjs.
OMG! Bun.js finally has a built-in router for Bun.serve()! This dropped way faster than I expected, and I’m seriously impressed.
It was not meant to be a used project, but after a while it got 22 stars and 2 forks for my express-inspired crappy bun router.
https://github.com/NobleMajo/bun-route
It seems that Hono is not that well accepted, I guess.
I think Hono is a well-build tool.
It's really a fun project.
So far:
- web server up and running
- unit test suite with some basic tests up and running
- filesystem access (list/read files)
- typescript code only
and all of that out of the box with both engines, zero dependency!
This is SOOO huge, in the past you needed like hundrets of packages (cascaded) for that! Insane!
Released `bun-plugin-dlight` 0.5! Did you know you can use Bun.build to transpile and bundle html/js/ts? This is a simple plugin for `Bun.build` that lets you transpile DLight views for your web app (see https://dlight.dev)
#NodeJS doesn't have XMLHttpRequest, so that error shouldn't be related to modules or not. Using fetch is preferred common way to perform a HTTP request.
https://nodejs.org/api/globals.html#fetch
If you like TS, I'd suggest looking at #Deno or #BunJS as they both directly can run TS without a transpiler step. Further, both have extra runtime support for doing common operations often more succinctly than the equivalent NodeJS option.
Examples:
https://docs.deno.com/runtime/reference/deno_namespace_apis/
Compile and run C in JavaScript
— Jarred Sumner
「 From compression to cryptography to networking to the web browser you're reading this on, the world runs on C. If it's not written in C, it speaks the C ABI (C++, Rust, Zig, etc) and is available as a C library. C and the C ABI are the past, present, and future of systems programming.
That's why in Bun v1.1.28, we introduced experimental support for compiling and running native C from JavaScript 」
People versed in Javascript/Node.js package managers (npm, yarn, and company): Is there any reason that a lockfile *shouldn't* be committed to a repository?
I'm usually *for* committing lockfiles, but I've noticed some people in the JS ecosystem don't include them for reasons that are unclear to me.
Bun now supports Windows, plus IPC with Nodejs is available. Time to take this out for a spin.
Bun have released an embedded language and interpreter for shell scripts that's shipping with the Bunjs runtime. They claim this is faster than calling bash inside Nodejs. Still experimental though.
Zig is a significant improvement over C++
...To be honest...
Even C is a significant improvement over C++