@whitequark@mastodon.social
@whitequark@mastodon.social avatar

whitequark

@whitequark@mastodon.social

catgirl shaped object

"A cat is valued for companionship and its ability to kill vermin."

✧ i have friends, and my purpose is to support them ✧
✦ i have enemies, and my purpose is to eliminate them ✦
✶ i have a life, and my purpose is to reach heaven by violence ✶
✷ nothing else matters ✷

#searchable

This profile is from a federated server and may be incomplete. Browse more on the original instance.

whitequark, to random
@whitequark@mastodon.social avatar

perf: not only does it profile your code, but it also plays helldivers for you!

whitequark,
@whitequark@mastodon.social avatar

(PA System) Four billion eight hundred twenty one million five thousand three hundred twenty one samples collected

whitequark, to random
@whitequark@mastodon.social avatar

software engineering really gets a different vibe if changing a single character and rebuilding takes about half a hour

android has prepared me for this

whitequark,
@whitequark@mastodon.social avatar
whitequark,
@whitequark@mastodon.social avatar

@artemist wow, you're even more of a masochist

hats off

whitequark,
@whitequark@mastodon.social avatar

@azonenberg I am linking 1 (one) C++ binary

whitequark,
@whitequark@mastodon.social avatar

@azonenberg it's clang

whitequark, to random
@whitequark@mastodon.social avatar

postgres is a great database engine :)

whitequark,
@whitequark@mastodon.social avatar

@pkhuong NOPE

whitequark,
@whitequark@mastodon.social avatar

@pkhuong and it's even worse with the other request I have, which is basically select distinct date(timestamp)

it is so slow that i had to hide it behind a secret header on nginx so that googlebot would not DoS me 🙃

whitequark,
@whitequark@mastodon.social avatar

@jason I asked for help on the postgresql channel, at least a workaround (you can tweak the query planner knobs so that it doesn't do this shit) and the people there were like "our query planner is perfect as it is and requires no adjustment, instead do this shit [see link]"

after that experience I've decided to not take them seriously

dlharmon, to random
@dlharmon@chaos.social avatar

Fins milled off the heatsink revealing surprise heatpipes. Not sure to keep them or mill through, put a copper block on top of the FPGA.

Glasgow jtag-pinout didn't find any JTAG ports in the 11 pins that had diodes to 1.8 V. The board has blind vias for JTAG on the FPGA so tracing will be hard. The management controller can take over the JTAG, may be doing so. More to trace.

whitequark,
@whitequark@mastodon.social avatar

@dlharmon MSP432P or MSP432E?

whitequark, to random
@whitequark@mastodon.social avatar

me: "i like it how the entire LLVM project is one monorepo"
her: "when are you going to compile the entirety of LLVM to WebAssembly?"
me: "yes."
her: "... I said that as a joke"

whitequark,
@whitequark@mastodon.social avatar

suffering! yay!!!!

image/png
image/png
image/png

whitequark,
@whitequark@mastodon.social avatar

tracking progress of the linker by noting that it is on minute 10 out of approximately 22

whitequark,
@whitequark@mastodon.social avatar

how hard can it be to select a few instructions .

whitequark,
@whitequark@mastodon.social avatar

launching the linker, sitting down and reading a chapter of a book

whitequark,
@whitequark@mastodon.social avatar

motherfucker could you not tell me about the missing symbols BEFORE spending 20 minutes linking

whitequark,
@whitequark@mastodon.social avatar

oh wait, this one is on me

i'm building with -flto facepalm

if i recall, linking with -flto=thin is nearly as bad since basically all time is spent in the instruction selector, and linking without lto is still pretty bad, but it's not quite "twenty minutes each time" bad

whitequark,
@whitequark@mastodon.social avatar

[100%] Linking CXX executable ../../../../bin/clang
[100%] Built target clang

whitequark,
@whitequark@mastodon.social avatar

(maniacal laugh)

$ wasmtime -S threads=y llvm-build/bin/clang --version
clang version 18.1.2 (https://github.com/llvm/llvm-project 26a1d6601d727a96f4301d0d8647b5a42760ae0c)
Target: wasm32-unknown-wasi
Thread model: posix
InstalledDir:

whitequark, (edited )
@whitequark@mastodon.social avatar

$ cat test.c
int add(int a, int b) { return a + b; }
$ wasmtime -S threads --dir . ./llvm-build/bin/clang -c test.c
$ file test.o
test.o: WebAssembly (wasm) binary module version 0x1 (MVP)

whitequark,
@whitequark@mastodon.social avatar

@jhwgh1968 I am obviously aiming to do this

whitequark,
@whitequark@mastodon.social avatar

@notgull wait until I get the linker and the compiler driver working too

whitequark,
@whitequark@mastodon.social avatar

@notgull yeah

whitequark,
@whitequark@mastodon.social avatar

$ wasmtime -S threads --dir . ./llvm-build/bin/wasm-ld test1.o -o test.wasm
Error: error while executing at wasm backtrace:
0: 0x7ed5b - <unknown>!<wasm function 583>

Caused by:
0: memory fault at wasm address 0x378268 in linear memory of size 0x340000
1: wasm trap: out of bounds memory access

ahhhh.... here we go. the suffering I expected!

whitequark,
@whitequark@mastodon.social avatar

@dngrs i don't see why not

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • magazineikmin
  • Durango
  • Leos
  • Youngstown
  • rosin
  • khanakhh
  • slotface
  • ngwrru68w68
  • mdbf
  • thenastyranch
  • kavyap
  • DreamBathrooms
  • JUstTest
  • modclub
  • everett
  • anitta
  • GTA5RPClips
  • osvaldo12
  • ethstaker
  • cisconetworking
  • tacticalgear
  • tester
  • megavids
  • cubers
  • normalnudes
  • lostlight
  • All magazines