HNHacker News
TopNewBestAskShowJobs

ljouhet

53 karma · joined March 6, 2023

submissionscomments
ljouhet··on Fastpotify
I used `cargo install --path . --locked` to install (had an error when compiling `librespot`)
ljouhet··on Unlimited OCR: One-shot long-horizon parsing
Real question: what tool do you use? (for long/complex documents with tables, code, maths)

- marker (with --force-ocr) gives me the best results

- Mistral OCR (seems really great, but I never managed to get it work)

- Mathpix (tried a long time ago)

- docling (gives me garbage, I must use it wrong)

- Unlimited OCR (will try it)

- ???

ljouhet··on Start all of your commands with a comma (2009)
Most of my aliases contain `--` for the same reason, `git--progress`, `grep--rIn`, `nvidia--kill`, `ollama--restart`, `rsync--cp`, `pdf--nup`...

Easy autocomplete, I know there won't be any collision, and which command is mine.

ljouhet··on GLM-4.7-Flash
Something like

    ollama run hf.co/ngxson/GLM-4.7-Flash-GGUF:Q4_K_M
It's really fast! But, for now it outputs garbage because there is no (good) template. So I'll wait for a model/template on ollama.com
ljouhet··on Show HN: Picknplace.js, an alternative to drag-and-drop
I have a regular scroll wheel and it moves two items each time. Totally unusable for me.

(great idea, though)

ljouhet··on Over-regulation is doubling the cost
TLDR: "I drive an ambulance and I could save more people if I could drive faster, so speed limits are bad!"
ljouhet··on Klong: A Simple Array Language
First line of https://t3x.org/klong/prime.html

"The braces around an expression denote a function. Because this function contains a single variable, x, it is a monadic function or a monad."

I never understood that about monads, even if it's litterally their name.

ljouhet··on Burrito Now, Pay Later
It is a satire, right?

I don't know what to think anymore

ljouhet··on SDFs and the Fast sweeping algorithm in Jax
https://en.wikipedia.org/wiki/Interface_(matter)
ljouhet··on Ty: A fast Python type checker and language server
uv is an incredible tool ; ty will be also. It's insanely fast

For now, I have some false negative warnings :

'global' variables are flagged as undefined `int:unresolved-reference: Name ... used when not defined` (yeah, it's bad, I know)

f(*args) flagged as missing arguments `lint:missing-argument: No arguments provided for required parameters ...`

ljouhet··on Evolving OpenAI's Structure
Who defines "value-aligned, safety-conscious project"?

"Instead of our current complex non-competing structure—which made sense when it looked like there might be one dominant AGI effort but doesn’t in a world of many great AGI companies—we are moving to a normal competing structure where ..." is all it takes

ljouhet··on We can, must, and will simulate nematode brains
Isn't it the goal of https://openworm.org/ ?
ljouhet··on Quiver: A Modern Commutative Diagram Editor
https://statebox.org/what-is/ leads to https://typedefs.com/
ljouhet··on Show HN: SkunkHTML – Markdown Blog with GitHub Pages
Page not found (404) : https://github.com/simonw/shot-scraper-template/generate
ljouhet··on A ChatGPT clone, in 3000 bytes of C, backed by GPT-2 (2023)
I love the way it's written: see this ChatGPT-like code that fits in your screen? Let's break it down!
ljouhet··on Tree Calculus
In Python:

    Leaf = []
    Stem = lambda x: [x]
    Fork = lambda a, b: [a, b]

    is_leaf = lambda x: len(x)==0
    is_stem = lambda x: len(x)==1
    is_fork = lambda x: len(x)==2

    def apply(a, b):
        """ From https://treecalcul.us/specification/ (OCaml) """
        if is_leaf(a): return Stem(b)
        if is_stem(a): return Fork(a[0], b)
        x, y = a       # a == Fork(x, y)
        if is_leaf(x): return y
        if is_stem(x): return apply(apply(x[0], b), apply(y, b))
        u, v = x       # x == Fork(u, v)
        if is_leaf(b): return u
        if is_stem(b): return apply(v, b[0])
        s, t = b       # b == Fork(s, t)
        return apply(apply(y, s), t)

    T = {}
    T["false"] = Leaf
    T["true"]  = Stem(Leaf)
    T["not"]   = Fork (Fork (T["true"], Fork (Leaf, T["false"])), Leaf)

    def show(tree):
        name = [k for k in T if T[k]==tree][0]
        print(name or tree)

    show(apply(T["not"], T["false"])) # true
    show(apply(T["not"], T["true"]))  # false
ljouhet··on The 70% problem: Hard truths about AI-assisted coding
"AI is like ....". "A very eager ...". "That sounds like AI to me.". Yup
ljouhet··on Advent of Code 2024
You can use Firefox: "Copy as cUrl" (https://superuser.com/a/1382425)
ljouhet··on Charset="WTF-8"
Yes, all these forms should handle existing names...

but the author's own website doesn't (url: xn--stpie-k0a81a.com, bottom of the page: "© 2024 ę ń. All rights reserved.")

ljouhet··on Sequin: A powerful little tool for inspecting ANSI escape sequences
Great work: this tool will be really useful to me!

(Note: the "terminal animations" in github make the examples difficult to read.)

ljouhet··on Counterintuitive Properties of High Dimensional Space (2018)
Thank you! I love this article, but I couldn't find it.

I always search "Curse of dimensionality" instead of "Counterintuitive properties..."

ljouhet··on Open Source Python ETL
Didn't understand either:

Extract, transform and load...

vs

ETL: Extract, transform and load data...

Extract, transform and load (ETL) data...

Extract, Transform and Load data...

ljouhet··on Show HN: Slipshow – A presentation tool not based on slides
Amazing work! Tutorial: <https://slipshow.readthedocs.io/en/latest/tutorial.html>
ljouhet··on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim
Needs nvim version 0.9.2 or higher: https://github.com/neovim/neovim/blob/master/INSTALL.md
ljouhet··on Show HN: ML Blocks – Deploy multimodal AI workflows without code
Sorry to write this comment: isn't it exactly like ComfyUI?
ljouhet··on Ask HN: How would you approach mastering a skill ASAP?
I would start with a first hour, then The first 20 hours (https://www.youtube.com/watch?v=5MgBikgcWnY), then you just need 90 minutes. Every day
ljouhet··on Unlocking North Korean songs on a karaoke machine
https://xkcd.com/221/
ljouhet··on Show HN: AI explanations for other people’s code
That's why the title says other people's production code /s
ljouhet··on The Smallest Hash Table
(I used the wrong strings: "A X" not "A X\n")

many constants work with 13 : 0x93f0687f, 0x8c38599e, 0x8f5e14c2, 0x932d2c11 some with 71 : 0xd9526a52, ... couldn't find mod 923

ljouhet··on The Smallest Hash Table

    pub fn phf_noshift(x: u32) -> u8 {
        (x.wrapping_mul(0x9e4c340a)%13) as u8 // Not a hash table
    }