eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

224
active users

#emscripten

0 posts0 participants0 posts today

Proof-of-concept project, showing that it's possible to run an entire Large Language Model in nothing but a #PDF file.

It uses #Emscripten to compile #llama.cpp into asm.js, which can then be run in the PDF using an old PDF JS injection.

Combined with embedding the entire #LLM file into the PDF with base64, we are able to run LLM inference in nothing but a PDF

github.com/EvanZhouDev/llm.pdf

GitHubGitHub - EvanZhouDev/llm.pdf: Run LLMs inside a PDF file.Run LLMs inside a PDF file. Contribute to EvanZhouDev/llm.pdf development by creating an account on GitHub.

I have a new #programming playground: #WASM with #Emscripten
emscripten.org/

I explored this platform some time ago, but had no practical use for it.

But #HTML5 #canvas elements can act as a "screen" for stuff generated or managed in c or #cpp.
Posting user events to a "native" WASM worker and posting back images to the browser's thread makes the browser a virtual machine for classic C programs.

It's not very performant, but sufficient.
And it's pure fun to see that it just works 😁

emscripten.orgMain — Emscripten 3.1.75-git (dev) documentation
Continued thread

Halfix x86 emulator

x86 PC emulator that runs both natively and in the browser, via WebAssembly

#javascript #c #emulator #c99 #webassembly #emscripten #x86 #cpu_emulator #pentium #pc_emulator #x86_emulator

Halfix is a portable x86 emulator written in C99. It allows you to run legacy operating systems on modern platforms.

**Compatibility**

It boots a wide range of operating system software, including all versions of DOS, most versions of Windows (excluding Windows 8), newer versions of OS/2 Warp (3 and 4.5), ReactOS, some varieties of Linux (ISO Linux, Damn Small Linux, Red Star OS 2, Buildroot, Ubuntu), 9Front, NeXTSTEP, several hobby OSes, and probably more.

nepx.github.io/halfix-demo/

github.com/nepx/halfix

GitHubGitHub - nepx/halfix: x86 PC emulator that runs both natively and in the browser, via WebAssemblyx86 PC emulator that runs both natively and in the browser, via WebAssembly - nepx/halfix

Published a WIP demo of Tragrady of the Uncanny as a HTML5 playable game on itch.io. This is a temporary version, since it is being developed with the #gba and #msdos in mind.

#retrodev #emscripten
#screenshotsaturday
#rpg
#dungeoncrawler
#indiegame
#homebrew
#PlayOnBSD
#feedbackquest
#gba

Please provide feedback!

montyontherun.itch.io/sub-mare

as part of the itch.io/jam/feedback-quest-7-i Jam

#c++ #cpp #emscripten #programming

I have this c++ code:
```
...
stringstream stream("23.4f");
float f;
char c;
stream >> f;
stream.get(c);
cout << "Float = " << f << endl << "Character = " << c << endl;
...
```

In ideone.com it works as expected (f = 23.4, c = 'f'). But when I have a code, that should be essentially equivalent, and I compile it with em++ (emscripten), I get f = 0 & failed stream. What could be causing this problem?