This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-01
Channels
- # adventofcode (170)
- # announcements (3)
- # babashka (1)
- # beginners (25)
- # cherry (1)
- # cider (3)
- # clj-kondo (5)
- # cljsrn (9)
- # clojure (27)
- # clojure-art (2)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (2)
- # clojure-uk (5)
- # code-reviews (12)
- # component (8)
- # conjure (1)
- # data-science (2)
- # hyperfiddle (6)
- # malli (5)
- # off-topic (65)
- # overtone (34)
- # polylith (3)
- # re-frame (2)
- # reagent (2)
- # releases (3)
- # rum (1)
- # shadow-cljs (2)
- # slack-help (8)
- # sql (8)
- # squint (100)
- # thejaloniki (3)
- # tools-build (16)
- # vim (7)
- # yamlscript (1)
heh, I didn't realize we had str/split-lines and friends in squint
that's still very helpful
it would be nice if we had slurp too
yeeeaaaahhhh
plus async vs sync
yeah. I have slurp in nbb.core but I'm not happy with it, it's now async while most of the time I just want to do fs/readFileSync UTF-8
squint's could!
yeah I couldn't get it to work in a console, it's complaining about file fetching not being implemented yet
"yet" is interesting, but it doesn't help me now
> Uncaught TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: not implemented... yet...
yet...
> about file fetching not being implemented yet This is because you haven't filled in your AOC token
oh, no, this is locally, trying to use fetch in a node console to get local files
I'm on 20.10
this has fetch, it just doesn't support fetching from the filesystem
but it teases that it's a possibility by saying "not implemented... yet...
āÆ node --version
v20.10.0
āÆ node
> fetch('file:///Users/cora/Code/aoc-2023/1')
Promise {
<pending>,
[Symbol(async_id_symbol)]: 97,
[Symbol(trigger_async_id_symbol)]: 6
}
> Uncaught TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: not implemented... yet...
about the playground, where do you find the AOC token?
feeling like a dummy because I can't see it anywhere
ahhh you explain it here
yeah, look into your cookies on http://adventofcode.com :) I could have been clearer
beware of using an ns form, it doesn't work properly I'm fixing that right now.
Just (require '["...."])
does work
it would be nice to be able to contribute to the playground, I really want a way to clear the output and to colorize compiler output
ahhh ok, great
thanks
I'm iffy on the formatting bits, but water.css is a simple add that makes everything look better.
I think one minor improvement to showing results could be to partially show lazy results, like the first 20 elements or so
oh definitely
a progress spinner while evaluating would be nice too
no worries, my emacs isn't either, but I also use vs code and that's good at these languages
that looks great
what adds the AOC token form?
it needs to be styled so it's inline
oh the code? it's here: https://gist.github.com/borkdude/cf94b492d948f7f418aa81ba54f428ff
ahhh, ok, I see
I wrapped the AOC form elements in a div and made it display as a row with appropriate spacing
I did š
actually let me link to your explanation for how to get the token, too
yeah indeed... also on exception in the fetch function we could display some helpful info too
I'm trying to come up with a better util.inspect implementation for LazyIterable but I don't know how to do this "after the fact". I added a custom toString()
on LazyIterable. If you undo the custom printing in index.html and then do:
(unchecked-set (.-constructor (range))
js/util.inspect.custom (fn [this] "hello" #_(str this)))
I expected it to work, but it doesn't. Ah well, tomorrow.thanks
I hit my timebox for adding a tooltip with instructions for how to get the token
the opacity is being weird https://gist.github.com/corasaurus-hex/17679ab93204ae2cdf7775eed9379a5f
not sure what's up
I need to play with it to figure it out but it's my birthday and I'm off to dinner
cheers
nice! ty!
I haven't gone back and figured out the help text yet, or clearing the append output and sticking it in a container
another update: https://gist.github.com/corasaurus-hex/17679ab93204ae2cdf7775eed9379a5f
the hover was janky and busted
also introduced a css utility class thing for styling that form, makes it more understandable what all is going on
ok, added a button for clearing the output and added timestamps to all the output
and put a border around the output
that's all for me tonight