Blockland Forums > Modification Help

blocklandjs

Pages: (1/7) > >>

Metario:

blocklandjs is back
(after like three rewrites lmfao)features in this rework:

* a full tcp stack
* an event loop that'll use 30% of your cpu if you don't let it sleep every millisecond
* es6 modules... a feature not even node.js supports natively (you have to enable it through a stupid flag lol)
* a libuv implementation that'll knock your socks off (asynchronously)
* the best god damned bridge between torquescript and javascript you've ever seen
* comes with your own 14 year old asian as your little tech support man
* it's pretty darn fast
* asynchronous filesystem operations, binary i/o is supported"alright i'm convinced, how do i download this?"
get the latest release here
"how can i trust you haven't backdoored this dll"
really you can't but if you don't trust the dlls i put out, i provide the libraries and the project file to compile it yourself, get them here
"where's the documentation"
here
"why can't i use require like node.js"
use this code instead

--- Code: ---import('ModuleName').then((mod) => {ModuleName = mod;});

--- End code ---
"how the hell do i install modules"
throw them in a folder in your addons, and name the entry point or main file index.js
"why don't you provide classes that do everything for me"
because i don't believe in the weed that the node.js developers were smoking when they decided that evalling about 50 modules worth of code upon startup was a good idea, as well as the principal of NIH.
"i found an issue how the hell do i report it"
make a new issue here
"but why"
because torquescript is really slow and i don't like the syntax of it (i haven't used torquescript for like a year)

download: here

example projects i've done so far: sorta functioning http server



Metario:

reserved

Scout31:

Super cool, excited to see what all this will be used for. Have a bunch of ideas popping around.

Metario:


--- Quote from: Scout31 on February 19, 2018, 10:44:42 PM ---Super cool, excited to see what all this will be used for. Have a bunch of ideas popping around.

--- End quote ---
you could actually expose all of the json stuff from v8 and expose it to torquescript
and have a faster json parser then jettison :o

Kyuande:

fun fact: you can rewrite a lot of engine functions too to be faster - note that this dll isnt to obviously cause problems with the game (making stuff worse), its to expand those functions to do more than what we want

i remember i rewrote some functions just for infinite mining script to be much faster, but i never publicly tested this mode sadly in javascript - now that this javascript dll is much stable than last time i probably could make a mod entirely in javascript


Any ideas on what I should make as a first javascript BL add-on?

Pages: (1/7) > >>

Go to full version