Comments (4)
Hi there!
Sorry for the delay. As you may have noticed the project is still young, and TBH I haven't made my mind up about package management.
It is not something I can think about right now, not at least there is a working WebSocket and HTTP server implementation in here :-)
I'm currently leaning towards an FFI interface for accessing external libraries indeed.
Now that you mentioned uws, I did take a quick look for maybe using it to power the WS server / client, but it looks like it just does servers, right?
My plan at the moment is to go with libwebsockets, because it will allow me to support WS and HTTP client / server with a single library. That would replace curl.
from txiki.js.
libwebsockets for all in one solution will be great!
Another thing is maybe go for an deno/es6 like import for packages aka:
import {
add,
multiply,
} from "https://x.nest.land/[email protected]/source/index.js";
from txiki.js.
libwebsockets for all in one solution will be great!
Another thing is maybe go for an deno/es6 like import for packages aka:
import { add, multiply, } from "https://x.nest.land/[email protected]/source/index.js";
HTTP imports already work :-) Not sure what Deno does if the imported file imports another one relatively though, that might not work (yet) but I have not tried it.
from txiki.js.
libwebsockets for all in one solution will be great! Another thing is maybe go for an deno/es6 like import for packages aka:
import { add, multiply, } from "https://x.nest.land/[email protected]/source/index.js";
I had the same idea https://www.reddit.com/r/Deno/comments/106r0v0/how_to_compile_servetls_for_import_into_quickjs/, https://www.reddit.com/r/javascript/comments/106m5i6/askjs_is_there_an_javascript_engine_agnostic/. The source files are downloaded to /home/user/.cache/deno/deps/https/deno.land/
. Not sure how to proceed from there besides modifying the code by hand to remove references to Deno
.
from txiki.js.
Related Issues (20)
- Implement localStorage and sessionStorage HOT 1
- Build problems on OpenBSD HOT 5
- Add typescript declaration file ? HOT 2
- Add mbedtls to support https & crypto HOT 12
- fetch() from browser net::ERR_INVALID_HTTP_RESPONSE when testing tjs.listen() HOT 5
- utils.js is not found in build HOT 2
- v23.1.0 has unpredictable segfaults when running invalid JS files HOT 3
- Can not build in MAC HOT 4
- Support Uint32Array, other TypedArray's and ArrayBuffer parameter for stdin.read() (StdioInputStream)) HOT 8
- Add timeout for http imports
- Build problems on macOS 11.2.3 HOT 5
- Could this be used on an e.g. Pico Pi? HOT 2
- support indexedDB implement HOT 7
- [Question] Making JS Files a Built-in module HOT 6
- FFI does not support complex structures
- @types packet for txikijs HOT 3
- osx clang use -O3 parseFloat('Infinity') == 3 HOT 2
- Readline module
- tjs do not show any error message when import failed HOT 2
- .js extension and `run` cmd required HOT 5
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 txiki.js.