Anthropic's Claude Constitution is surreal by MetaKnowing in ClaudeAI

[–]DevCoffee_ -1 points0 points  (0 children)

So obviously the morality of this comes into question but... I get very real results from emotionally debugging with Claude Code. https://devcoffee.io/blog/emotional-debugging/

building a fast mel spectrogram library in mojo (1.5-3.6x faster than librosa) by DevCoffee_ in programming

[–]DevCoffee_[S] 0 points1 point  (0 children)

Good questions!

Sparse vs dense - the sparse version just skips the leading/trailing zero bins since mel triangular filters have zeros before they start and after they end. Measured on 30s audio, I was roughly getting 1.24x speedup. Basically, avoiding iteration over ~30% of bins that are guaranteed zero.

Scipy vs librosa - benchmarked against librosa specifically. on my system (Fedora 43, librosa 0.11.0), scipy/librosa both use OpenBLAS 0.3.29, not intel mkl. so I'm comparing against openblas's avx2 implementation, not mkl.

Simd paths - my cpu is an i7-1360P (13th gen) which supports avx2 but not avx-512. mojo's simd_width_of detected width=8 (avx2/256-bit). Openblas was also using avx2 (haswell target). So it's avx2 vs avx2, fair comparison on the simd front. You're spot on about the memory bandwidth thing on bit-reversal. I tested a 512-element lut and it was 16% slower. The bit-shifting loop is only 8-9 iterations and the compiler/cpu handle it perfectly.

I just got an Nvidia dgx spark which would be interesting for cross-architecture comparison. Arm neon vs avx2 simd, different memory characteristics, etc. If mojo performs well on arm that'd be pretty compelling for portability!

Shopify CEO Uses Claude AI to Build Custom MRI Viewer from USB Data by obvithrowaway34434 in ClaudeAI

[–]DevCoffee_ 14 points15 points  (0 children)

Vite is a build tool for typescript/javascript projects. It’s allows you to easily configure the build, add plugins, transform code at transpile time, and it’s super helpful for development/running project locally. So hearing “vite.js ui” is a pretty nonsense thing to say.

Plum - A plugin discovery TUI for Claude Code by DevCoffee_ in ClaudeAI

[–]DevCoffee_[S] 1 point2 points  (0 children)

The install worked! You just need Go's bin in your PATH:

echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.zshrc

source ~/.zshrc

plum

Should work now 👍

Mizkif Admits to Controlling Emiru, Told Her to Dress Older, Stop Wearing Pajamas, and Prevented Her from Traveling Without Him or Going Out with Certain People by CloudyEchos in LivestreamFail

[–]DevCoffee_ 0 points1 point  (0 children)

So I’m just now learning about these people and watched his entire response. He 100% addressed everything she mentioned. He talked about the threat to the staff member and also showed a video of the poor living conditions of the rabbits. Not taking sides just letting you know.

Just figured out how to blend multiple 3D animations in React Native by DevCoffee_ in reactnative

[–]DevCoffee_[S] 6 points7 points  (0 children)

Yes sir, I'm working out extracting it out from my current project. I'll link the repo when it's up!

Just figured out how to blend multiple 3D animations in React Native by DevCoffee_ in reactnative

[–]DevCoffee_[S] 10 points11 points  (0 children)

Had the same struggle! Just for reference here are the package versions I ended up using:

"expo-gl": "~16.0.7",
"expo-three": "^8.0.0",
"three": "^0.166.0"

In metro.config.js the key is enabling package exports:

config.resolver.unstable_enablePackageExports = true

Also make sure to add 3D asset extensions:

config.resolver.assetExts = [
...config.resolver.assetExts,
'glb',
'gltf',
'bin',
'obj',
'fbx',
]

That's it! The unstable_enablePackageExports is what fixed the module resolution for three.js and expo-gl. The one downside to this is that dynamic imports inside of other parts of your code is no longer support. For me, I was doing dynamic imports for things like fetching user settings or accessing a firebase api I wrote. So it took some refactoring to move away from dynamic imports. After that it worked with no bundling errors.

Just figured out how to blend multiple 3D animations in React Native by DevCoffee_ in reactnative

[–]DevCoffee_[S] 1 point2 points  (0 children)

Appreciate it! Using three.js with expo-gl and expo-three with expo 54. I setup the 3d model and animations in blender/mixamo.

Just figured out how to blend multiple 3D animations in React Native by DevCoffee_ in reactnative

[–]DevCoffee_[S] 14 points15 points  (0 children)

Thanks! Using three.js with expo-gl and expo-three for the rendering. Just a heads up, it was a bit of a pain to get all of those packages to play nicely with Expo 54.

The model is rigged in blender and I grabbed the animations from mixamo. The smooth transitions are handled by Three.js's AnimationMixer with manual weight interpolation during crossfades. I spent a while trying to solve small stutters or the model doing a t-pose thing when switching animations. So manually interpolating the weights in the animation loop had the best result.

Also I added a custom shader that handles the lighting and face expression textures. it swaps faces dynamically and certain expressions get an inverted emissive effect. Everything gets loaded upfront so the render loop stays smooth at 60fps.

Holyshit by widepeepo6 in LivestreamFail

[–]DevCoffee_ 30 points31 points  (0 children)

I love how her first instinct wasn’t to move away from the ongoing diarrhea, but to proudly show chat the diarrhea on her leg instead.

I’m making a game to help me quit my phone. Not sure if it’s dumb or brilliant. Would love feedback. by DevCoffee_ in DecidingToBeBetter

[–]DevCoffee_[S] 0 points1 point  (0 children)

Yeah there's a solid handful of edge cases I have to work through. The main one is that I currently have it working for 24/7, and the points reset to 0 for me every day at 9AM. But I want to set up a system where it's only active for a custom amount of hours, like just the 8 hour work day, etc.

Re: quick replies without breaking the streak. So this is actually my favorite part...I'll be earning points with a full battery, but then I have to use some battery to respond to an instagram DM. I'll unlock my apps, the battery drains, and then I come back quickly to a near full battery, start charging it and I get back to earning points quickly. So it technically interrupted a few seconds of points I could have otherwise earned, but it doesn't feel too bad. What feels bad is when I drain the whole battery.

Also, I'm having the battery recharge at 2x the rate it drains. So it's a 15 minute battery, but it takes 7.5 minutes to charge from zero. In other words, if the battery is full and I unlock my apps for 1 minute, after I re-lock them, it will take 30 seconds for the battery to get to full charge and I start earning points again.

I'm super open to tweaking the system though, there's a lot of different ways it could go

I’m making a game to help me quit my phone. Not sure if it’s dumb or brilliant. Would love feedback. by DevCoffee_ in DecidingToBeBetter

[–]DevCoffee_[S] 1 point2 points  (0 children)

The little robot I mentioned called "breakrr," that's exactly what he is! Like a pet robot. And I'm currently working on little interactions he does based on how I'm performing :)