Comments (3)
just eval "just.print(just.memoryUsage().rss)"
works tho
9187328
but after creating new project, it shows this error:
build blabla 0.0.22 (just.js) g++ -c -fno-exceptions -ffunction-sections -fdata-sections -DJUST_VERSION='"0.0.22"' -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter just.cc
g++ -c -fno-exceptions -ffunction-sections -fdata-sections -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter main.cc
g++ -s -static -flto -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o modules/sys/sys.o modules/fs/fs.o modules/net/net.o modules/vm/vm.o modules/epoll/epoll.o -Wl,--end-group -Wl,--gc-sections -ldl -lrt -o blabla
/usr/bin/ld: /tmp/blabla.pU5vnP.ltrans0.ltrans.o: in function `_sub_I_65535_0.8055':
<artificial>:(.text.startup+0xb7): undefined reference to `_binary_blabla_js_end'
/usr/bin/ld: <artificial>:(.text.startup+0xbe): undefined reference to `_binary_blabla_js_start'
/usr/bin/ld: /tmp/blabla.pU5vnP.ltrans2.ltrans.o: in function `main':
<artificial>:(.text.startup+0x1e9): undefined reference to `_binary_blabla_js_start'
/usr/bin/ld: <artificial>:(.text.startup+0x1f7): undefined reference to `_binary_blabla_js_end'
collect2: error: ld returned 1 exit status
make: *** [Makefile:87: main-static] Error 1
failed in 4.6 sec
from just.
yes. it looks like a couple of bugs here. there's a lot of things that need to be fixed and will have a roadmap for a stable release soon. looks like the code here is out of date: https://github.com/just-js/just/blob/main/lib/build.js#L311.
and if you do
just build --clean
it should resolve the issue with the missing symbols. i'll have a fix for this out shortly.
from just.
closing this as these issues should be resolved in upcoming 0.1.2 release
from just.
Related Issues (20)
- Unable to init new applications following directions in root/readme.md HOT 1
- Which V8 Version? HOT 1
- Tips on how to use external C/C++ modules
- just.library('http') return undefined (windows10 wsl2 ubuntu) HOT 8
- run on baremetal Raspberry Pi? HOT 1
- "Hello World" example HOT 9
- Lets Merge runtime-js and its kernel directly into this project HOT 1
- BIG ISSUE: WHERE CAN I SEND YOU MONEY HOT 7
- Mariadb Support HOT 4
- Next steps? We are all stuck at "Go"! HOT 7
- Documentation: The JustJS smol runtime Documentation. HOT 1
- PR: lib/snapshot.js (create, load, modify)
- Apache benchmark not working. HOT 2
- PR: cli api
- The Just js fundamentals and build instructions as a book
- Build failed with linker errors HOT 2
- avoid clock_gettime syscall by use vDSO HOT 1
- [Question] ESM Support? HOT 11
- EvalError: Code generation from strings disallowed for this context HOT 2
- Maintenance update? HOT 9
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 just.