Post Ai2OF22wBgwaqVUVfM by [email protected] | |
More posts by [email protected] | |
Post #Ai1Y1DjUkIotQ6UR6m by [email protected] | |
0 likes, 0 repeats | |
me: "i like it how the entire LLVM project is one monorepo"her: "… | |
Post #Ai1jkosoZFRRAOnM6y by [email protected] | |
0 likes, 0 repeats | |
i am adding _so many_ ifdefs per minute right now | |
Post #Ai1mDiWxSsoBlrTlCK by [email protected] | |
0 likes, 0 repeats | |
TableGen... my old nemesis | |
Post #Ai27Qh5GFkl65OYLaa by [email protected] | |
0 likes, 0 repeats | |
i've ported much of the upstream LLVM (18.1.2) to WASI, enough to link Clan… | |
Post #Ai27ulp7CCzfTOLHqi by [email protected] | |
0 likes, 0 repeats | |
@whitequark this seems... unusually long...?have you tried lld or mold (https:/… | |
Post #Ai27x7wFwXSMdoo3FY by [email protected] | |
0 likes, 0 repeats | |
it took over 20 minutes and about 18 GB. obviously, there are missing symbols! | |
Post #Ai281WBviJbz1CEPRY by [email protected] | |
0 likes, 0 repeats | |
@JamesWidman that's lld. mold doesn't support wasm | |
Post #Ai28EgX4ZrNQr4Oogi by [email protected] | |
0 likes, 0 repeats | |
@whitequark oh wow...i'm wondering if the time consumed by the linker is so… | |
Post #Ai28U2ECCDwGUCtBR2 by [email protected] | |
0 likes, 0 repeats | |
@JamesWidman it's running the relooper, yes | |
Post #Ai2Bxj4gGxKXdIHuk4 by [email protected] | |
0 likes, 0 repeats | |
@hikari possibly | |
Post #Ai2BzBJgkqoNVu0Ad6 by [email protected] | |
0 likes, 0 repeats | |
@hikari I mean, I've already done this for FPGAs, for three different langu… | |
Post #Ai2EMY40Y0JWdBwADo by [email protected] | |
0 likes, 0 repeats | |
suffering! yay!!!! | |
Post #Ai2EkxFgY7eXhY2Lyq by [email protected] | |
0 likes, 0 repeats | |
@whitequark you truly do bring a "suffering! yay!!!" vibe to the func… | |
Post #Ai2EkxJwIJ3Vuk1kbw by [email protected] | |
0 likes, 0 repeats | |
@iximeow it's a 353 line patch consisting almost exclusively of #ifdef :) | |
Post #Ai2EoDaEHo6xDlCc2y by [email protected] | |
0 likes, 0 repeats | |
tracking progress of the linker by noting that it is on minute 10 out of approx… | |
Post #Ai2F41vjNdbpiEnccS by [email protected] | |
0 likes, 0 repeats | |
how hard can it be to select a few instructions . | |
Post #Ai2FPz9yMQgRUWviGu by [email protected] | |
0 likes, 0 repeats | |
launching the linker, sitting down and reading a chapter of a book | |
Post #Ai2FVkfX9P3KHnRSWu by [email protected] | |
0 likes, 0 repeats | |
@whitequark so many to choose from :( | |
Post #Ai2FVkjQuuAiTtGZbk by [email protected] | |
0 likes, 0 repeats | |
@whitequark after my adventure in "learning how llvm generates code" … | |
Post #Ai2FVkmyhj0WesvP8K by [email protected] | |
0 likes, 0 repeats | |
@iximeow i just discovered that building tablegen is unconditionalyou cannot no… | |
Post #Ai2FZRvklH5vKPn96W by [email protected] | |
0 likes, 0 repeats | |
motherfucker could you not tell me about the missing symbols BEFORE spending 20… | |
Post #Ai2IvuKm8cKBeatcPI by [email protected] | |
0 likes, 0 repeats | |
oh wait, this one is on mei'm building with -flto *facepalm*if i recall, li… | |
Post #Ai2JBqS2LHBYFDtMtU by [email protected] | |
0 likes, 0 repeats | |
[100%] Linking CXX executable ../../../../bin/clang[100%] Built target clang | |
Post #Ai2JIOJvKXvx1dDccC by [email protected] | |
0 likes, 0 repeats | |
(maniacal laugh)$ wasmtime -S threads=y llvm-build/bin/clang --versionclang ver… | |
Post #Ai2K5JIMnnqNd6ohm4 by [email protected] | |
0 likes, 0 repeats | |
$ cat test.c int add(int a, int b) { return a + b; }$ wasmtime -S threads --dir… | |
Post #Ai2K67TQEyOdFsNEwq by [email protected] | |
0 likes, 0 repeats | |
@jhwgh1968 I am obviously aiming to do this | |
Post #Ai2Kd2EmjGPkZWDrzk by [email protected] | |
0 likes, 0 repeats | |
@whitequark This genuinely might be the most blessed thing I’ve seen all mont… | |
Post #Ai2Kd2J2TRoimiDGcq by [email protected] | |
0 likes, 0 repeats | |
@notgull wait until I get the linker and the compiler driver working too | |
Post #Ai2KmcA2XHYyaoZT4C by [email protected] | |
0 likes, 0 repeats | |
@whitequark Does this mean I could have an online C compiler test environment e… | |
Post #Ai2KmcEIHSxwo0YrhI by [email protected] | |
0 likes, 0 repeats | |
@notgull yeah | |
Post #Ai2N6tu4TmLXJtu2C0 by [email protected] | |
0 likes, 0 repeats | |
$ wasmtime -S threads --dir . ./llvm-build/bin/wasm-ld test1.o -o test.wasmErro… | |
Post #Ai2O4orMMQZ73ICpEm by [email protected] | |
0 likes, 0 repeats | |
@whitequark super exciting! Do you think it's possible to target WASM for … | |
Post #Ai2O4ovG7vgVFO1wJc by [email protected] | |
0 likes, 0 repeats | |
@dngrs i don't see why not | |
Post #Ai2OF22wBgwaqVUVfM by [email protected] | |
0 likes, 0 repeats | |
(grins and creates another LLVM checkout) time to upstream the LLVMSupport patc… | |
Post #Ai2OVdLzFQazBZJkie by [email protected] | |
0 likes, 0 repeats | |
@[email protected] yeah, i could never get wasmtime or other wasm runt… | |
Post #Ai2OVdPt0viNNf8rnU by [email protected] | |
0 likes, 0 repeats | |
@alexis that's not an issue with wasmtime, that's a problem of some kin… | |
Post #Ai2OWL0CxlJoYlSysi by [email protected] | |
0 likes, 0 repeats | |
@alexis most likely, a buggy mmap() emulation or something | |
Post #Ai2OdGaBnG0KsabH1c by [email protected] | |
0 likes, 0 repeats | |
@whitequark this is excellent! Thank you for working on this. I've been wan… | |
Post #Ai2OdGeRXRPJ5mafei by [email protected] | |
0 likes, 0 repeats | |
@ethantyping oh hey, nice! what kind of? | |
Post #Ai2QPjm2fG2dGhowsa by [email protected] | |
0 likes, 0 repeats | |
@whitequark First thing I'd want to do is a client-side Rust playground.I a… | |
Post #Ai2QPjqIPRRbTtoLVg by [email protected] | |
0 likes, 0 repeats | |
@ethantyping deterministic builds is a part of what I'm building this for! | |
Post #Ai2QmBbXs4kNxFcDmC by [email protected] | |
0 likes, 0 repeats | |
@whitequark Programming leads to anger. Anger leads to hate. Hate leads to suff… | |
Post #Ai2ROCXSqWyFr8pk9I by [email protected] | |
0 likes, 0 repeats | |
@brouhaha but I like suffering | |
Post #Ai2RRuiP3WNnjfij8C by [email protected] | |
0 likes, 0 repeats | |
@whitequark leads to the dark side, it does | |
Post #Ai2RXP9nIkJbb59P1s by [email protected] | |
0 likes, 0 repeats | |
@brouhaha yeah I'm okay with that | |
Post #Ai2ct6Nosi7fEoG9c8 by [email protected] | |
0 likes, 0 repeats | |
https://discourse.llvm.org/t/rfc-building-llvm-for-webassembly/79073https://git… | |
Post #Ai2fwyerqQTYIelzY8 by [email protected] | |
0 likes, 0 repeats | |
@whitequark how big is wasm clang? | |
Post #Ai2fwyj7absWVqlOBE by [email protected] | |
0 likes, 0 repeats | |
@fay59 ~50M uncompressed | |
Post #Ai2qSvihIrzRzmRIrQ by [email protected] | |
0 likes, 0 repeats | |
so... that one was on me, right? so i did a non-LTO, RelWithDebInfo buildthe li… | |
Post #Ai2qiy68EJLw0J33OC by [email protected] | |
0 likes, 0 repeats | |
afaict the compiler driver calls wasm-opt unconditionally if:- it is on PATH- y… | |
Post #Ai2rc03ce6hE0a7EBM by [email protected] | |
0 likes, 0 repeats | |
@whitequark have you found the llvm cmake option which makes just one busybox-s… | |
Post #Ai2rc07WPbocCfwLGC by [email protected] | |
0 likes, 0 repeats | |
@lenary what's it called | |
Post #Ai2rgIZjjqRAbDBdAW by [email protected] | |
0 likes, 0 repeats | |
-rwxr-xr-x 1 whitequark whitequark 877M May 19 09:31 clang-19-rwxr-xr-x 1 whi… | |
Post #Ai2sDZ2lWyrVEMcvh2 by [email protected] | |
0 likes, 0 repeats | |
so now that i've generated half a gig of debug information i can just feed … | |
Post #Ai2w4sWu71r6sNq03s by [email protected] | |
0 likes, 0 repeats | |
do you think the debug information was valid? nope! wasm-opt unconditionally la… | |
Post #Ai2xAe3Qwb2LfoMnVg by [email protected] | |
0 likes, 0 repeats | |
why does a single chromium renderer process peg _six cores_ | |
Post #Ai2xmtoComFzXTU85g by [email protected] | |
0 likes, 0 repeats | |
i have solved my problem by disassembling the wasm module (i went through three… | |
Post #Ai3g4ytL3T5oUyJnBg by [email protected] | |
0 likes, 0 repeats | |
@whitequark i have a bunch of ideological and practical reasons i want this to … | |
Post #Ai3g4yxEoyDCh48uGW by [email protected] | |
0 likes, 0 repeats | |
@whitequark though i would probably prefer something like boxedwine. hmm… | |
Post #Ai3g4z18aTKat9y1LM by [email protected] | |
0 likes, 0 repeats | |
@hikari @whitequark 💭 "Why are you running a browser inside a browser?&… | |
Post #Ai3g4z52LyRz5Fn8QC by [email protected] | |
0 likes, 0 repeats | |
@mary @hikari yeah I could probably compile webkit.wasm with clang.wasm in a fe… | |
Post #Ai3gF7uqMF2NNmrNMO by [email protected] | |
0 likes, 0 repeats | |
@whitequark Oooh, I admire your patience and determination! Does whitequark ref… | |
Post #Ai3gF7yk7k9lZsgURE by [email protected] | |
0 likes, 0 repeats | |
@sanfierro white quarks don't exist | |
Post #Ai3gG8AatmTYSahpWC by [email protected] | |
0 likes, 0 repeats | |
@whitequark we would just add process management to wasi ngl. | |
Post #Ai3gG8EUfHawegWwb2 by [email protected] | |
0 likes, 0 repeats | |
@SoniEx2 then do it :3 | |
Post #Ai46H3ehlYPDYatPZQ by [email protected] | |
0 likes, 0 repeats | |
@whitequark ...do you need more than the ability to run processes synchronously… | |
Post #Ai46H3ibX3WbkgiWeG by [email protected] | |
0 likes, 0 repeats | |
@SoniEx2 i think gcc for example uses pipes extensively, which are a problemi p… | |
Post #Ai48VCKIWaFsPaDYNk by [email protected] | |
0 likes, 0 repeats | |
@whitequark hmm we don't think there's a wasi interface for fifos yet..… | |
Post #Ai48VCOCI5NGbg2fSa by [email protected] | |
0 likes, 0 repeats | |
@SoniEx2 yep, that's the plan. I want it to be fully synchronous because SA… | |
Post #Ai5qfVmxbpqMoHJRSK by [email protected] | |
0 likes, 0 repeats | |
@whitequark I am feeling exactly this today. | |
Post #Ai5qfVrDM1FL1TIq5Q by [email protected] | |
0 likes, 0 repeats | |
@sen oh no... my condolences |