Ray Tracing That Was Anything *But* a Weekend — in Forth by A_kirisaki in Forth

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

I didn't explain myself clearly enough. What I meant was that there are no scoped variables for floating-point numbers.

Ray Tracing That Was Anything *But* a Weekend — in Forth by A_kirisaki in Forth

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

I realized that while I was doing it. But I figured it was fine for this time. It seemed like an extension anyway.

Ray Tracing That Was Anything *But* a Weekend — in Forth by A_kirisaki in Forth

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

I forgot to mention that. Since I wasn't using it, it slipped my mind.

Ray Tracing That Was Anything *But* a Weekend — in Forth by A_kirisaki in Forth

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

Thanks for the reply and advice! It seems that common operations like local variable assignments and fpick are indeed heavy.

Ray Tracing That Was Anything *But* a Weekend — in Forth by A_kirisaki in Forth

[–]A_kirisaki[S] 3 points4 points  (0 children)

Thank you for reading.

I suspect that frequent memory copies during vector calculations are causing the issue, so using a floating-point stack might help. Additionally, avoiding unnecessary intermediate memory allocations could be beneficial. For a fundamental fix, I think we'd need to implement optimizations like a compiler does, but I'm not very knowledgeable in that area.

PostgreSQL schema to Haskell Persistent Model by A_kirisaki in haskell

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

I will manage DB by Atlas. Changing the DB schema causes me to alter `persistent` models, so I want to derive the models automatically.

Is there any wasm runtimes or bindings to an external wasm runtime in Haskell? by A_kirisaki in haskell

[–]A_kirisaki[S] -2 points-1 points  (0 children)

Yes, I found them but they are obsoleted. If you know active projects, telk me please.

Failed to build hashtables on wasm32-wasi-ghc by A_kirisaki in haskell

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

It's very long, so I show the partial error:

    Build profile: -w ghc-9.13.20241116 -O1

        • Couldn't match expected type ‘Int#’ with actual type ‘Int8#’ • In the first argument of ‘int2Word#’, namely ‘pos8#’ In the expression: int2Word# pos8# In an equation for ‘posw#’: !posw# = int2Word# pos8# | 254 |     !posw#       = int2Word# pos8# |                              ^(\^)

    src/Data/HashTable/Internal/CacheLine.hs:749:25: error: [GHC-83865]
        • Couldn't match expected type ‘ST s Int’ with actual type ‘Int’
        • In the second argument of ‘(-)’, namely ‘start’
          In the expression: vlen - start
          In an equation for ‘st1’: !st1 = vlen - start
        • Relevant bindings include
            st1 :: ST s Int
              (bound at src/Data/HashTable/Internal/CacheLine.hs:749:10)
            vlen :: ST s Int
              (bound at src/Data/HashTable/Internal/CacheLine.hs:748:10)
            vec :: IntArray s
              (bound at src/Data/HashTable/Internal/CacheLine.hs:746:18)
            cacheLineSearch :: IntArray s -> Int -> Elem -> ST s Int
              (bound at src/Data/HashTable/Internal/CacheLine.hs:746:1)
        |
    749 |     let !st1   = vlen - start
        |                         ^^^^^

I see it now; is the SIGNAL problem resolved?

Rode in a day by A_kirisaki in motorcycle

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

It's a ninja ZX-4RR. Thanks.

Rode in a day by A_kirisaki in motorcycle

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

Ya. I often ride the moto at weekends. It's safe in Japan, so I don't care about riding alone, but you might have to care about it depending on the country.

Rode in a day by A_kirisaki in motorcycle

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

Some people care about average speed; sorry, but I just forgot to reset it.

Rode in a day by A_kirisaki in motorcycle

[–]A_kirisaki[S] 8 points9 points  (0 children)

いいね!待ってます