Comments (5)
I opened #56 to discuss modularizing builtins... I really like to idea of us making it dead simple to write extensions to jstime that are exposed as crates for easy consumption. If we do this we may want to even tease out console + queue_microtask and literally ship with 0 builtins
from jstime.
@jlengstorf I think the big difference here will be what is part of jstime cli (e.g. when they install jstime) vs what they get when they embed jstime_core.
I would imagine that jstime cli would ship with a bunch of built ins to make it useful, but jstime core could perhaps ship with only an interface for defining built ins and we ship the built ins separately
from jstime.
@bengl I guess one solution to split the difference here could be limiting the builtins that we ship in jstime_core, making other builtins available as their own crates, and then making the jstime CLI perhaps vendor enough things to make it a bit more useful off the shelf.
That way jstime_core can focus on supporting the API surface to be extensible and we can also ship a number of off the shelf built ins folks can include if they want. Could be an interesting place to explore collaboration with deno, it sounds like they might be starting to break out / vendor some of their builtins
from jstime.
That all pretty much sounds good. π
It sounds like the real win in #54 will be figuring out how to make jstime_core
dead-simple to extend.
from jstime.
a potential counterpoint to "ship with 0 builtins" is potential confusion for new devs. I see a lot of devs get overwhelmed and bail when it feels like there's a ton of config to add/things to install just to get to the point where they can start writing code (e.g. webpack, babel), so there's also a lot of value in having things Just Workβ’
that being said, I love the idea of modularizing builtins because that paves the way for really cool stuff around opting into future specs
and I guess one cool thing would be that you could create a "power user" option (no builtins) and a "happy path" option (comes with web compat builtins already) if things are modular anyways
from jstime.
Related Issues (20)
- Broadening collaborators and creating open governance
- Support Top-Level Await HOT 2
- Support WHATWG Streams HOT 2
- Improve the docs HOT 2
- MacOS Binaries need to be notarized HOT 7
- Stack traces no longer working HOT 2
- Errors in run JavaScript code still have exit code of 0 HOT 1
- ESM Builtins
- store repl history between sessions HOT 1
- implement import.meta.url
- Implement WHATWG URL api HOT 2
- Implement HTML standard timer APIs HOT 5
- Should we implement NAPI? HOT 3
- Should we allow PRs with no review to land after a certain amount of time?
- jstime_core: Modularizing builtins
- Release action is busted HOT 1
- Compilation failure when installing via `cargo install jstime` HOT 5
- wasm modules
- json modules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jstime.