blueboat
TypeScript
Our great sponsors
blueboat | TypeScript | |
---|---|---|
18 | 1115 | |
1,871 | 89,869 | |
- | 1.3% | |
7.9 | 9.9 | |
about 1 month ago | 4 days ago | |
Rust | TypeScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
blueboat
-
What's with All the Runtimes for JavaScript?
Right now it is an exciting time for JavaScript. We just got a new shiny fast runtime Bun, with the last new kid Deno being released only 4 years ago, and we have edge computing/serverless runtimes like Cloudflare worker and Blueboat. With all these hypes for the JavaScript community, I could not help but ask, how come only JavaScript gets all these fancy new runtimes? Why don’t we hear these more often in other languages?
-
Show HN: Distributed SQLite on FoundationDB
Hello HN! I'm building mvsqlite, a distributed variant of SQLite with MVCC transactions, that runs on FoundationDB. It is a drop-in replacement that just needs an `LD_PRELOAD` for existing applications using SQLite.
I made this because [Blueboat](https://github.com/losfair/blueboat) needs a native SQL interface to persistent data. Apparently, just providing a transactional key-value store isn’t enough - it is more easy and efficient to build complex business logic on an SQL database, and it seems necessary to bring a self-hostable distributed SQL DB onto the platform. Since FoundationDB is Blueboat’s only stateful external dependency, I decided to build the SQL capabilities on top of it.
At its core, mvsqlite’s storage engine, mvstore, is a multi-version page store built on FoundationDB. It addresses the duration and size limits (5 secs, 10 MB) of FDB transactions, by handling multi-versioning itself. Pages are fully versioned, so they are always snapshot-readable in the future. An SQLite transaction fetches the read version during `BEGIN TRANSACTION`, and this version is used as the per-page range scan upper bound in future page read requests.
For writes, pages are first written to a content-addressed store keyed by the page's hash. At commit, hashes of each written page in the SQLite transaction is written to the page index in a single FDB transaction to preserve atomicity. With 8K pages and ~60B per key-value entry in the page index, each SQLite transaction can be as large as 1.3 GB (compared to FDB's native txn size limit of 10 MB).
mvsqlite is not yet "production-ready", since it hasn’t received enough testing, and I may still have a few changes to make to the on-disk format. But please ask here if you have any questions!
-
Show HN: Blueboat is an all-in-one, multi-tenant serverless JavaScript runtime
This sounds quite a bit like Cloudflare Workers, and they have a comparison page - https://github.com/losfair/blueboat/wiki/Comparison-with-Clo....
-
Are V8 isolates the future of computing?
Blueboat may be what you’re looking for
> If one writes Go or Rust, there are much better ways to run them than targeting WASM
wasm has its place, especially for contained workloads that can be wrapped in its strict capability boundaries (think, file-encoding jobs that shouldn't access anything else but said files: https://news.ycombinator.com/item?id=29112713).
> Containers are still the defacto standard.
wasmedge [0], atmo [1], krustlet [2], blueboat [3] and numerous other projects are turning up the heat [4]!
[0] https://github.com/WasmEdge/WasmEdge
[1] https://github.com/suborbital/atmo
[2] https://github.com/krustlet/krustlet
- Blueboat, an open-source alternative to Cloudflare Workers
-
Deno Deploy Beta 2
https://github.com/losfair/rusty-workers
They're not perfectly isolated to a high security standard such that you could deploy your own v8 workers SaaS. And they do have quirks and development woes. I haven't tested in production but if it's just your trusted apps wanting to exceed the cloudflare workers 30 scripts limit then both are wonderfully powerful solutions to put behind a https proxy.
TypeScript
-
Vanilla+PostCSS as an Alternative to SCSS
As a front-end web developer, do you still use CoffeeScript or jQuery? Unlikely, as TypeScript, ES/TC39 and Babel (and the retirement of Internet Explorer thanks to @codepo8 and his EDGE team) have helped to transform JavaScript into some kind of a modern programming language.
-
Wat
https://www.typescriptlang.org/play?#code/ATAOEMCcGcFMEkB2AX...
So TypeScript intentionally suppresses this kind of complaint when matching up function types even though it issues them when calling functions directly. The reason for that has a justification, but in contexts like this, I think it is a WAT-worthy interaction.
https://github.com/microsoft/TypeScript/wiki/FAQ#why-are-fun...
-
I just updated my Starter Template to Tailwind 3.3 built with Next.js + TypeScript + ESLint + Prettier + Jest + Cypress
🔥 Type checking TypeScript
-
Understanding the Benefits of "Quirky" Web Languages
As we can see, there are different types of non-strict behavior. I am not advocating for weak or untyped variables, although that's another aspect of web technology in its original form and the reason for TypeScript and PHP Standards Recommendations. Fault tolerance might invite people to overoptimize, making code harder to understand and introduce new potential sources of error. That can be fixed by advocating strict and orderly source code, which might or might not be transpiled to a more compact output. Actually this is the main point of robustness: "be conservative [or strict] in what you do, be liberal in what you accept from others".
-
How to write simple intelligent code search with Open AI
Let's get started. First, you need to write a code to extract various pieces of code from the project, such as functions. TypeScript provides a convenient compiler API for working with an AST, which simplifies the task. Install csv-stringify library to generate CSV:
-
Rust tech stack
(Not that I encourage it. I'm one of those "a website should give a first-class NoScript/uMatrix experience" people and prefer to use traditional server-side rendering with progressive enhancement via TypeScript. See Publishing Rust types to a TypeScript frontend if you want to go that route.)
-
How the hell do you handle exceptions in Typescript?
Hehe, someone already proposed optional chaining on unknown, and it was rejected. https://github.com/microsoft/TypeScript/issues/37700
-
Creating a serverless API using AWS Lambda and Node.js with TypeScript and Express.js
In this article, an application will be created using the Node.js with TypeScript and Express.js where a serverless API will be implemented and deployed on the AWS Lambda service.
- TypeScript cannot emit valid ES modules due to file extension issue (2020)
What are some alternatives?
zod - TypeScript-first schema validation with static type inference
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
zx - A tool for writing better scripts
esbuild - An extremely fast bundler for the web
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Yup - Dead simple Object schema validation
rescript-compiler - The compiler for ReScript.
gray-matter - Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
fp-ts - Functional programming in TypeScript
linaria - Zero-runtime CSS in JS library
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
lodash - A modern JavaScript utility library delivering modularity, performance, & extras.