wabt
septum
Our great sponsors
wabt | septum | |
---|---|---|
20 | 14 | |
6,320 | 366 | |
2.5% | - | |
8.7 | 6.4 | |
3 days ago | 21 days ago | |
C++ | Ada | |
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.
wabt
-
Show HN: Mutable.ai – Turn your codebase into a Wiki
As long as this is happening, might as well try some of my favorites: https://github.com/wasm3/wasm3, https://github.com/WebAssembly/wabt, https://github.com/bytecodealliance/wasmtime
- Ask HN: Best blog tutorial explaining Assembly code?
-
Understanding Every Byte in a WASM Module
This seems sort of like understanding machine code vs assembly; it's much easier to learn WAT and translate to/from WASM as necessary using the wabt tools [0].
Either way its super cool how simple WebAssembly is, you can really get your hands dirty and understand exactly every detail of how your program runs!
-
Show HN: Gogosseract, a Go Lib for CGo-Free Tesseract OCR via Wazero
You mean this? https://github.com/WebAssembly/wabt/blob/main/wasm2c/README....
That seems like quite an undertaking. But at that point, It would make sense to cut out WASM entirely like https://datastation.multiprocess.io/blog/2022-05-12-sqlite-i...
-
WebAssembly: byte-code of the future
The .wat file can be compiled to a .wasm using wat2wasm which is part of the WebAssembly Toolkit CLI tools:
- DeviceScript: TypeScript for Tiny IoT Devices
-
Hey Rustaceans! Got a question? Ask here (5/2023)!
I'm trying to get a basic Rust webassembly program, then porting it to C via wasm2c. The example works, but when I use wasm-bindgen and analyze it with wasm2wat, I get an import "env". The issue is that in C (wasm2c) it comes out as struct Z_env_instance_t; and I can't instantiate it (as in Z_env_instance_t env; to pass it's address to Z_wasm_client_bg_instantiate.
-
Would rewriting a JS library in WASM(Rust) provide sufficient obfuscation?
There are wasm2c and wasmdec that decompile to C. There is also rewasm, which decompiles WASM to Rust. But I don't know if they can reconstruct non-trivial logic, e.g. shapes of structures.
-
rust to c complication?
https://github.com/WebAssembly/wabt/tree/main/wasm2c (WebAssembly to C)
-
SQLite: QEMU All over Again?
> a single-file distribution literally won't be possible
Actually.
You could compile the Rust into Wasm, then the Wasm into C.
Firefox did this last year [1], so the tools exist and it's neither totally impossible nor totally stupid.
It _would_ result in some overhead, but not as much as running Wasm through a JIT.
wasm2c is the tool they apparently used in 2021. [2]
[1] https://hacks.mozilla.org/2021/12/webassembly-and-back-again...
[2] https://github.com/WebAssembly/wabt/tree/main/wasm2c
> wasm2c takes a WebAssembly module and produces an equivalent C source and header.
septum
-
Getting up to speed on a c++ codebase
septum - interactive searching for contexts matching and excluding parameters
-
Zig self hosted compiler is now capable of building itself
Ada is another option without a GC. I wrote a search tool for large codebases with it (https://github.com/pyjarrett/septum), and the easy multitasking and pinning to CPUs allows you to easily go wide if the problem you're solving supports it.
There's very little allocation since it supports returning VLAs (like strings) from functions via a secondary stack. Its Alire tool does the toolchain install and provides package management, so trying the language out is super easy. I've done a few bindings to things in C with it, which is ridiculously easy.
-
April 2022 What Are You Working On?
I mentioned my project Septum in a HackerNews comment, which caused it to pick up over 200 GitHub stars. That seemed to give Ada some publicity since it's a general purpose tool, so I'll also publish a new up-to-date version (0.0.6) here soon.
-
Ask HN: How do you search large code-base before adding a feature or fixing bug?
I work on code bases with millions of lines, so I wrote a tool called Septum to help me (https://github.com/pyjarrett/septum/). This isn't to replace grep or ripgrep or silver searcher, those are all great tools you should have!
Septum is neighborhood based (context-based) search, so you can find contiguous groups of lines which contain specific things, but exclude other things. It's also interactive so you can add/remove filters as needed. This makes it useful for those cases where terms change based on their context so you can exclude terms related to the contexts you don't want to keep. It reads .septum/config which contains its normal commands to load directories and settings, so you can have different configs per project you're working on.
-
Ada Crate of the Year: Interactive code search
Here's a short demo video of his Septum tool mentioned in the article: https://asciinema.org/a/459292
-
What Did You Work On in 2021?
I also did a few things: - Wrote an online e-book about Ada - Septum - context-based source code search for multi-million line codebases (I use this nearly every day at work. It's being submitted as my Ada crate of the year. - dir_iterators - library similar to the incredible walkdir. - project_indicators - library for spinners and progress bars. - trendy_terminal - library for cross-platform terminal setup, VT100 support, and GNU readline-like behavior. - trendy_test - library for simple unit testing, which runs tests in parallel. - Ada Ray Tracer - an Ada port of Ray Tracing in One Weekend. - dirs_to_graphviz - Make graphviz files from directory trees. - rst_tables - a tool to draw RST table outlines.
-
Is Ada used only for embedded systems?
No. I use Ada to write programs for desktops. I wrote one for code search, because other tooling couldn't handle the amount of code I threw at it at work.
-
How do you quickly find Ada documentation?
Jump-to-definition works pretty well with the Ada Language Server and also in GNAT Studio. Outside of that, I lookup things sometimes in "Programming in Ada 2012" by Barnes. I also wrote a tool I use for code discovery and load all the libraries that GNAT provides in one of my .septum/.configs.
-
[Alire] Septum, a tool for code search, my Crate-of-the-Year Entry
Septum is my crate of the year submission.
-
[Alire] Has anyone made any Crate of the Year submissions yet?
Septum is the big thing I'm entering. Everything I do in Ada revolves around that hobby project since I use it daily to search large codebases (many millions of lines), but the version I use on a daily basis is the several-month-old alpha in Chocolatey (I just haven't made a new one recently, though I should). I wrote most of it before I ever started using Alire, so I had to convert it to a crate, and there's a bunch of cleanup work. I wrote a bunch of libraries in Alire to support it (dir_iterators, trendy_test, progress_indicators, trendy_terminal), so I'm not sure if I'm supposed to submit those separately as well.
What are some alternatives?
wasmr - Execute WebAssembly from R using wasmer
langs
liburing-ada - liburing/io_uring bindings for Ada
perspective - A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
binaryen - Optimizer and compiler/toolchain library for WebAssembly
ews - The Embedded Web Server is designed for use in embedded systems with limited resources (eg, no disk). It supports both static (converted from a standard web tree, including graphics and Java class files) and dynamic pages. It is written in GCC Ada.
hound - Lightning fast code searching made easy
wasmtime - A fast and secure runtime for WebAssembly
Ada_GUI - An Ada-oriented GUI
ada-ray-tracer
benchmarks - Some benchmarks of different languages
Ada-SPARK-Crate-Of-The-Year