HNHacker News
TopNewBestAskShowJobs

almostdigital

797 karma · joined May 24, 2017

https://johan-nordberg.com @almost_digital on Twitter
submissionscomments
almostdigital··on Audio is the one area small labs are winning
https://elevenlabs.io/sound-effects

With the prompt "WWII Plane Japan Kawasaki Ki-61 flying by, propeller airplane" and setting looping on and 30 sec duration manually instead of auto (the duration predictor fails pretty bad at this prompt, you need to be logged in to set duration manually) it works pretty well. No idea if it's close to that specific airplane though it sounds like a ww2 plane to me though.

almostdigital··on Yamanot.es: A music box of train station melodies from the JR Yamanote Line
Super disappointed it didn't have Chūō Line, had to go find them :)

https://www.youtube.com/watch?v=1nkEfZKMEnw

almostdigital··on Starlink is currently experiencing a service outage
I saw some people report that their dishes are pointing in unusual directions so it would explain that, and that my service is fine since I only use the polar orbiting ones ¯\_(ツ)_/¯
almostdigital··on Starlink is currently experiencing a service outage
https://www.starlinkmap.org
almostdigital··on Starlink is currently experiencing a service outage
I'm posting this from my Starlink connection, been working fine here. I'm close to the arctic circle so maybe the polar orbiting satellites are not affected
almostdigital··on Cooking and bird safety
I thought those pans that are marketed as "granite" with a speckled pattern where just PTFE coated aluminium, is this something different?
almostdigital··on Mojo is now available on Mac
Just whatever you get by default with pip install numpy... Changing the benchmark to run with a 1024x1024x1024 matrix instead of a 128x128x128 does speed up numpy significantly though

    Python           119.189 GFLOPS
    Naive:             6.275 GFLOPS            0.05x faster than Python
    Vectorized:       22.259 GFLOPS            0.19x faster than Python
    Parallelized:     50.258 GFLOPS            0.42x faster than Python
    Tiled:            59.692 GFLOPS            0.50x faster than Python
    Unrolled:         62.165 GFLOPS            0.52x faster than Python
    Accumulated:     565.240 GFLOPS            4.74x faster than Python
np.__config__:

    Build Dependencies:
      blas:
        detection method: pkgconfig
        found: true
        include directory: /opt/arm64-builds/include
        lib directory: /opt/arm64-builds/lib
        name: openblas64
        openblas configuration: USE_64BITINT=1 DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS=
          NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= SANDYBRIDGE MAX_THREADS=3
        pc file directory: /usr/local/lib/pkgconfig
        version: 0.3.23.dev
      lapack:
        detection method: internal
        found: true
        include directory: unknown
        lib directory: unknown
        name: dep4364960240
        openblas configuration: unknown
        pc file directory: unknown
        version: 1.26.1
    Compilers:
      c:
        commands: cc
        linker: ld64
        name: clang
        version: 14.0.0
      c++:
        commands: c++
        linker: ld64
        name: clang
        version: 14.0.0
      cython:
        commands: cython
        linker: cython
        name: cython
        version: 3.0.3
    Machine Information:
      build:
        cpu: aarch64
        endian: little
        family: aarch64
        system: darwin
      host:
        cpu: aarch64
        endian: little
        family: aarch64
        system: darwin
    Python Information:
      path: /private/var/folders/76/zy5ktkns50v6gt5g8r0sf6sc0000gn/T/cibw-run-27utctq_/cp310-macosx_arm64/build/venv/bin/python
      version: '3.10'
    SIMD Extensions:
      baseline:
      - NEON
      - NEON_FP16
      - NEON_VFPV4
      - ASIMD
      found:
      - ASIMDHP
      not found:
      - ASIMDFHM
almostdigital··on Mojo is now available on Mac
Here's the same benchmark with np.matmul instead of native python (on M2 MBP)

    Python             4.216 GFLOPS
    Naive:             6.400 GFLOPS            1.52x faster than Python
    Vectorized:       22.232 GFLOPS            5.27x faster than Python
    Parallelized:     52.591 GFLOPS           12.47x faster than Python
    Tiled:            60.888 GFLOPS           14.44x faster than Python
    Unrolled:         62.514 GFLOPS           14.83x faster than Python
    Accumulated:     506.209 GFLOPS          120.07x faster than Python
almostdigital··on Mojo is now available on Mac
I did just that, it's 120x faster than numpy. See my comment to OP.
almostdigital··on Mojo is now available on Mac
Here's the same benchmark with numpy instead of native python (on M2 MBP)

    Python             4.216 GFLOPS
    Naive:             6.400 GFLOPS            1.52x faster than Python
    Vectorized:       22.232 GFLOPS            5.27x faster than Python
    Parallelized:     52.591 GFLOPS           12.47x faster than Python
    Tiled:            60.888 GFLOPS           14.44x faster than Python
    Unrolled:         62.514 GFLOPS           14.83x faster than Python
    Accumulated:     506.209 GFLOPS          120.07x faster than Python
almostdigital··on Pixpaint
Haha! This is great! Maybe it could be less jarring if you put a low pass filter on the angle changes
almostdigital··on Astral
Yeah, just realized that and was about to edit my comment. Found an issue tracking the black replacement bit: https://github.com/charliermarsh/ruff/issues/1904
almostdigital··on Astral
This is great, I'm going to switch to this from black. Being used to working in other languages I feel like I'm swimming in molasses when using Python.

It's funny that all good things for Python are not written in Python. Says a lot about the language.

almostdigital··on Clean front end architecture with SvelteKit
I'm offended! I don't click around like some lowly peasant, I navigate by keyboard like God intended.
almostdigital··on Clean front end architecture with SvelteKit
In theory it seems neat but in practice I'm here with 10 tabs all called "+page.svelte" or "+page.server.ts" and it completely breaks my workflow since I can't tell them apart or navigate with fuzzy name matching. How do you deal with that?
almostdigital··on Clean front end architecture with SvelteKit
SvelteKit's routing pattern is anything but clean. It uses filesystem based routes where every file is called "+page.svelte" (or +page.server.js/ts for API only routes).

For anything but a demo app with just a couple of routes it's a headache to navigate.

Edit: Another smell of the routing system to me is that you need to resort to complexity like this [1] to have anything but top down inheritance. I love Svelte btw and have used it in many projects.

[1] https://kit.svelte.dev/docs/advanced-routing#advanced-layout...

almostdigital··on Leveraging Rust and the GPU to render user interfaces at 120 FPS
Looking forward to trying this, VSCode is great but I really miss the performance of Sublime Text. I hope they get the plugin system right, killer feature would be if it could load VSCode plugins (incredibly hard to pull off, yes)
almostdigital··on Blind Spots: Automatically detecting ignored program inputs
Code from the paper:

https://github.com/trailofbits/polytracker https://github.com/trailofbits/polyfile

almostdigital··on Is Dark Mode Good for Your Eyes? (2020)
Automatic dark/light mode tracking sunset/sunrise is the best of both worlds IMHO.
almostdigital··on Why A4? – The Mathematical Beauty of Paper Size
This standard isn't part of the metric system though
almostdigital··on Is the internet killing the nude beach?
Camera phones killed it but generative AI models will revive it.

Who cares if someone takes a photo of you on the beach when they can just as well ask the AI to see you nude in any situation they can dream of... That, or the burka will become very popular

almostdigital··on The GPU Banana Stand
Love this blog, I get the "Dat Parallax" achievement every time I visit :D
almostdigital··on Enhanced Rock Weathering for CO2 Removal [video]
Another interesting idea: Drop asteroid pieces from space into the ocean to increase biomass growth

https://www.youtube.com/watch?v=2zQb_OitsaY

almostdigital··on Our brain is a prediction machine that is always active
Link to non-paywalled paper: https://www.biorxiv.org/content/10.1101/2020.12.03.410399v4
almostdigital··on Lex Fridman Podcast #309 – John Carmack
It's interesting that Lex is so polarizing, I personally find him a great host.

Him almost never doing research is objectively false though. He often reads books/articles/tweets written by the guests and asks about them for example.

almostdigital··on Kubernetes is a red flag signalling premature optimisation
I can't recommend docker swarm enough, it does 95% of what you need in k8s without requiring someone full-time just to manage it.
almostdigital··on Show HN: Lexman Artificial Podcast
Thank you!
almostdigital··on Show HN: Lexman Artificial Podcast
Technical writeup here: https://lexman.rocks/about
almostdigital··on Show HN: Personal AI Writing Assistant for Mac
I wish davinci-002 wasn't so damn expensive to use :(
almostdigital··on Magical SVG Techniques
Haha love it!

The SVG posters are cool, if you're looking for some feedback try to find some way to reduce the lag on the site when previewing them. In Safari on a M1 the site slows to a crawl once the poster SVG is loaded, each click takes several seconds to register. Maybe you could do a low res server side rendered version? That could you let users preview their repos without them being able to just right-click the SVG as well

Page 1 of 4Next →