ArithmeticExpressionCompiler
AECforWebAssembly
ArithmeticExpressionCompiler | AECforWebAssembly | |
---|---|---|
8 | 51 | |
1 | 31 | |
- | - | |
0.8 | 8.0 | |
almost 3 years ago | 7 days ago | |
Rich Text Format | C++ | |
- | MIT License |
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.
ArithmeticExpressionCompiler
-
Package management and distribution of your language
Well, for my AEC-to-x86 compiler, I provide a ZIP file with the source code (together with the MIT-licenced Duktape, which is necessary for my compiler to work, as the core of it is written in JavaScript, and also the source code of example programs), which I recommend to download. I also provide, for people who are willing to risk getting malware from my computer, a ZIP file containing the compiler executables for various OS-es as well as sources and executables of the example programs (but not the source code of Duktape and the part of my compiler written in C programming language).
-
Gas on windows?
I have made some GAS executable files to be executed on Windows, you can download them here (the EXE files are for Windows): https://github.com/FlatAssembler/ArithmeticExpressionCompiler/raw/master/recursive_HybridSort/RecursiveHybridSortExecutables.zip
-
Any safe alternative to the eval() function?
Maybe the way I have done that in my web-app, by tokenizing, parsing and then interpreting the string: https://flatassembler.github.io/compiler.html
-
This has been asked hundreds of times but...
A thing I have done with my knowledge of assembly language is that I have made a compiler for my programming language that targets x86: https://flatassembler.github.io/compiler.html
-
Any great tutorials for Windows 8086 Assembly Language?
And who cares about 8086? Probably not a single modern device has it. The earliest computer I had, running Windows 98, had Intel Celeron processor, which is, from the perspective of an assembly-language programmer, the same as i686 (Intel Pentium Pro). The assembly code that the compiler for my programming language produces will run on all computers you care about, and many so old you do not care: https://flatassembler.github.io/compiler.html
-
What flavour of Assembly do you/ have you commonly used? (Work, personal, etc.)
I have used FlatAssembler and GNU Assembler. Those are assemblers that the compiler for my programming language uses to target x86: https://flatassembler.github.io/compiler.html I also have a bit of experience with Microsoft Macro Assembler.
-
SolarWinds: The more we learn, the worse it looks
Antivirus software, for some reason, failed to detect the malware. I don't fully understand why. They misdetect a ton of innocent programs as malware (system files necessary for booting, BoringSSL, Motorola's Bluetooth drivers, the compiler for my programming language...), so it is instinctual to think they will detect an actual malware, but apparently that is not what happens.
- The assembly code the compiler for my programming language produces crashes on HaikuOS, even though it works on Linux and FreeBSD. I cannot figure out why.
AECforWebAssembly
-
Gren 0.3: Source maps
Great! I have not yet made source maps for my programming language that compiles to WebAssembly, and I probably never will.
- Mislite li da okolina ima potpuno pogrešno mišljenje o ljudima koji rade u IT-u?
- Koja je najapsurdnija poruka o pogrešci koju je neki vaš program ispisivao?
-
What is the most absurd error message your compiler/interpreter was once outputting?
Up until today, my AEC-to-WebAssembly was, if somebody tried to use two structures of different types as the second and the third operand to the ?: (ternary conditional) operator, as in this example: ``` Structure First Consists Of Nothing; EndStructure
- Poteškoće s pronalaskom posla
-
Good languages for writing compilers in?
Well, I have written the first compiler for my programming language, targetting x86, in IE6-compatible JavaScript, and the second compiler, targetting WebAssembly, has been written in C++11. I think that, to choose a language to write a compiler in, you need to look at at least two things:
-
Why does GCC run in Docker produce around 30% smaller statically linked C++ executables than GCC run on Linux? AECforWebAssembly is 1.08 MB large if compiled using GCC 13.1 in Docker, but it is 1.59 MB if compiled using GCC 13.1 on Debian.
You can see the releases v2.5.3 and v2.5.2 of AECforWebAssembly on GitHub. They are produced with the same version of GCC, the only difference (as far as I know) is that v2.5.2 was produced directly on Debian, whereas v2.5.3 was cross-compiled from Windows to Linux using Docker.
-
Let's Make Sure Github Doesn't Become the only Option
That could be true. I host my AEC-to-WebAssembly compiler on GitHub, GitLab and SourceForge, and it's only on GitHub that it has 21 stars and 2 forks. On GitLab and SourceForge, it has zero of both.
- koliko vam je bilo tesko nac posao u programiranju?
-
Does the JVM / CLR even make sense nowadays?
Well, the main compiler for my programming language is targetting the JavaScript Virtual Machine by outputting WebAssembly. I think it's even better than targetting Java Virtual Machine, because, for one thing, your executables can run in any modern browser if you output WebAssembly. If you target Java Virtual Machine, the users need to actually download your app. Furthermore, there is an official assembler for WebAssembly called WebAssembly Binary Toolkit (WABT), so your compiler can output assembly and not have to deal with binary files. There is nothing equivalent to that for Java Virtual Machine.
What are some alternatives?
PicoBlaze_Simulator_in_JS - Simulator (more accurately: an assembler and an emulator) for Xilinx PicoBlaze, runnable in a browser.
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
latino - Lenguaje de programación de código abierto para latinos y de habla hispana.
wasm-fizzbuzz - WebAssembly from Scratch: From FizzBuzz to DooM.
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
mal - mal - Make a Lisp
Drogon-torch-serve - Serve pytorch / torch models using Drogon
libCat - 🐈⬛ A runtime for C++26 w/out libC or POSIX. Smaller binaries, only arena allocators, SIMD, stronger type safety than STL, and value-based errors!
gdal-js - This is an Emscripten port of GDAL, an open source X/MIT licensed translator library for raster and vector geospatial data formats.
expected - C++11/14/17 std::expected with functional-style extensions
asyncio - asyncio is a c++20 library to write concurrent code using the async/await syntax.
EmGlue - 🕸️ Glue C++ to your browser! Universal bindings for JavaScript/Wasm using Glue and Embind.