HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kasbah

no profile record

Submissions

Open Footwear

openfootwear.com
3 points·by kasbah·10 tháng trước·0 comments

A Reply to Josef Prusa

blog.thea.codes
3 points·by kasbah·3 năm trước·0 comments

Red Team Blues [audio]

craphound.com
1 points·by kasbah·3 năm trước·0 comments

comments

kasbah
·12 tháng trước·discuss
Is it not possible to use `window.devicePixelRatio` instead of calibration?

https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...
kasbah
·năm ngoái·discuss
It's pretty straight forward to include the output of `wasm-pack` into a vite project. The output is a node module in a folder with the wasm files and a single "main" JS file.

Because I wanted to load WASM in a web worker for my project [1] I needed to use vite-plugin-wasm and `wasm-pack build --target web` but without that constraint you should be able to import the main JS file from the wasm-pack output directory using wasm-pack's default `bundler` target and no vite plugins.

[1]: https://github.com/kasbah/calm-go-pattern-search
kasbah
·2 năm trước·discuss
Interesting, thanks. I am especially interested in the idea of introducing player-defined concepts.

Would you be able to recommend a Datalog implementation that allows independant n-ary relations. Ideally one I can use from Python or Javascript in a sort of sandboxed way, as I am doing with Datascript, but if you have any recommendation at all it would be helpful to me.
kasbah
·2 năm trước·discuss
To me the interesting thing is the logic programming "rules" and their overlap with game rules. Inspired by work at Stanford on the logic programming based Game Description Language [1] I implemented Tic Tac Toe in Datascript yesterday: https://github.com/kasbah/datascript-games/blob/e06a37025bf9...

I am still not clear whether there isn't a more succinct rule definition than what I have there. In the Stanford paper you have rules like:

   (<= (column ?n ?x)
     (true (cell 1 ?n ?x))
     (true (cell 2 ?n ?x))
     (true (cell 3 ?n ?x)))
But in Datascript I have to do much more rigmarole around shuffling the data around:

  [(column ?n ?x) 
    [?current "ident" "current"] 
    [?coord0 "type" "coord"] 
    [?coord1 "type" "coord"] 
    [?coord2 "type" "coord"]
    [?coord0 "m" 0] 
    [?coord1 "m" 1] 
    [?coord2 "m" 2] 
    [?coord0 "n" ?n] 
    [?coord1 "n" ?n] 
    [?coord2 "n" ?n] 
    [?coord0 "name" ?key0] [?current ?key0 ?x]
    [?coord1 "name" ?key1] [?current ?key1 ?x]
    [?coord2 "name" ?key2] [?current ?key2 ?x]]
I don't know if this is down to Datascript/Datomic Datalog limitations or more the limitations of my understanding.

How do you approach your experiments? If you have any of your work to share or some tips on what I am doing I'd be very interested.

[1]: https://www.cs.uic.edu/~hinrichs/papers/love2006general.pdf
kasbah
·2 năm trước·discuss
"Reticulating splines"
kasbah
·3 năm trước·discuss
I use this with https://wiredjs.com for creating interactive mockups. E.g.

https://edea-dev.gitlab.io/mockups/ (source: https://gitlab.com/edea-dev/mockups)

https://otfn.development.fabcity.hamburg/git-pdm-mockups/
kasbah
·3 năm trước·discuss
Use Lobste.rs with a filter: https://lobste.rs/filters
kasbah
·3 năm trước·discuss
Shameless plug: the Kitspace page helps you build one yourself.

https://kitspace.org/boards/github.com/ottercast/ottercastau...
kasbah
·6 năm trước·discuss
I "watch" it on Github and it still gets updated. If notice out-of-date things you should open an issue or a pull-request.
kasbah
·6 năm trước·discuss
There is a directory of sorts here: https://github.com/nayafia/microgrants

(Not with deadlines though, as far as I am aware.)