cercopith has quit [Read error: Connection reset by peer]
<beach>
Thanks. Though, I wouldn't think jackdaniel intended to do any harm.
<jackdaniel>
beach: it is not html so that you can open the txt file in the browser and see the source code and notice, that there is <script type='text/common-lisp'> that is executed
<jackdaniel>
mesaoptimizer: this is because that's how emscripten builds its wasm loaders
<jackdaniel>
and of course because I want to break out from your sandbox and hack your computer
<jackdaniel>
generally this html file shows how to embed Common Lisp programs in a html files and they "just work" without any additional building or installation of wasm (thanks to including wecl wasm module)
<jackdaniel>
and the html file shows how you can install lisp callbacks in event listeners on javascript side (among other things)
<jackdaniel>
that said I'm after work hours, I've just dropped to clarify that while I'm a hacker, I'm not interested in breaking stuff ,)
bpanthi977 has quit [Ping timeout: 272 seconds]
yitzi has joined #commonlisp
<attila_lendvai>
when i'm generating a macro, can these somehow be simplified? `(progn ,@'nil (emit-byte ,'245)) i mean, can i do something differently so that ,'245 is simply 245 in the final output?
<attila_lendvai>
it's the same, it's just aesthetics... and i'm on SBCL
<attila_lendvai>
it's the same if i get rid of the quote
jonatack has joined #commonlisp
<Posterdati>
hi
user4 has quit [Quit: WeeChat 4.7.0]
bpanthi977 has joined #commonlisp
<Posterdati>
please help I need to encode a struct in a json, the struct has got slots names like "hello-people" with "-" inside the slots name. I'd like to convert slots name like "hello-world" to "hello_world". Thanks for help!
cercopith_ has quit [Read error: Connection reset by peer]
<beach>
Posterdati: To "convert" the symbol HELLO-WORLD to the string "hello world", you first need to take the SYMBOL-NAME of HELLO-WORLD. Then you need to turn it into lower case presumably using STRING-DOWNCASE. Finally, you need to replace the dash by a space, presumably using REPLACE.
<beach>
But that has nothing to o with json nor yason.
uhuh has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
Lord_of_Life has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Client Quit]
ingeniot has joined #commonlisp
Lord_of_Life has joined #commonlisp
<pve>
jackdaniel: that easy.html is incredible
<jackdaniel>
thanks :) I'm working on a blog post - this is one of byproducts
<ingeniot>
jackdaniel: I liked it too! :-)
<jackdaniel>
another one is connecting to emacs (slime) through a websocket
apac has joined #commonlisp
ingeniot has quit [Ping timeout: 256 seconds]
rolling-lambda_ has joined #commonlisp
rolling-lambda has quit [Read error: Connection reset by peer]
bpanthi977 has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 272 seconds]
bpanthi977 has quit [Ping timeout: 256 seconds]
kchanqvq35 has joined #commonlisp
ndanilov has joined #commonlisp
kchanqvq35 has quit [Quit: Client closed]
kchanqvq has joined #commonlisp
apac has quit [Ping timeout: 256 seconds]
<acdw>
anybody got hot takes on ITERATE vs LOOP vs whatever? i use loop and it's fine but this other system i depend on depends on iterate so what the hell, let's hear it
<kchanqvq>
ITERATE for everything. Syntax is nicer and it's extensible. The only current downside is it mess with debugger source location a bit
jon_atack has joined #commonlisp
* |3b|
suspects any takes have cooled quite a bit at this point, it isn't a particularly recent topis :p
<|3b|>
*topic
<kchanqvq>
I'm going to submit a NOTE-SOURCE-TRANSFORM patch to SBCL to hopefully solve the debugger source location issue once and for all
jonatack has quit [Ping timeout: 244 seconds]
<kchanqvq>
but I have not yet, so we'll have to live with the status quo...
<acdw>
|3b|: yeah that's true
<acdw>
but you know, we live for hot takes
<kchanqvq>
ITERATE for the win
* |3b|
likes LOOP, because the "unusual" syntax makes it easier for my brain to separate the "iteration" stuff from the "work being done" part
<acdw>
that's kinda been my thing so far. also my hot take is i kinda like DO actually
<|3b|>
ITERATE is probably nicer to deal with from code though, and being extensible would also be nice
<kchanqvq>
in ITERATE it's quite easy as well: everything like (for ...) and (collect ...)
<|3b|>
though for that i could just use a different LOOP if i were going to add a dependency
<kchanqvq>
and I believe Lisp visual cortex is tuned highly sensitive to function location
<acdw>
ITER doesn't just have a sequence-agnostic stepper? that's one thin about LOOP where i'm like, c'mon
ndanilov has quit [Remote host closed the connection]
<kchanqvq>
acdw: we now have (I don't remember from when on)
<acdw>
in ITER?
<kchanqvq>
also it's extensible so you can always define your own (and contribute!)
<acdw>
ooo
<kchanqvq>
acdw: yes
<acdw>
ok dang i might try it out
jonatack has joined #commonlisp
<acdw>
oh lol for var in-sequence blah
jon_atack has quit [Ping timeout: 244 seconds]
overclucker has quit [Ping timeout: 252 seconds]
phantomics_ has quit [Quit: Leaving]
phantomics_ has joined #commonlisp
phantomics_ has quit [Remote host closed the connection]
phantomics has joined #commonlisp
overclucker has joined #commonlisp
triffid has quit [Remote host closed the connection]
fgarcia has quit [Quit: Remote host closed the connection]
fgarcia has joined #commonlisp
teddydd has quit [Server closed connection]
teddydd has joined #commonlisp
rkazak has quit [Ping timeout: 256 seconds]
attila_lendvai_ has joined #commonlisp
kchanqvq87 has joined #commonlisp
attila_lendvai has quit [Ping timeout: 255 seconds]
admich1 has joined #commonlisp
jon_atack has joined #commonlisp
bpanthi977 has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
kchanqvq has quit [Ping timeout: 250 seconds]
<mesaoptimizer>
sorry, how do I notify someone again?
<bike>
::notify mesaoptimizer bam
<Colleen>
bike: Got it. I'll let mesaoptimizer know as soon as possible.
<mesaoptimizer>
::notify fosskers if you can, I'd love to read a comparison of cl-transducers and the SERIES package. Perhaps you can put that in the cl-transducers readme
<Colleen>
mesaoptimizer: Got it. I'll let fosskers know as soon as possible.
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 244 seconds]
ndanilov has joined #commonlisp
kchanqvq87 is now known as kchanqvq
ixelp has quit [Ping timeout: 248 seconds]
ixelp has joined #commonlisp
ello_ has quit [Read error: Connection reset by peer]
triffid has joined #commonlisp
ello_ has joined #commonlisp
apac has joined #commonlisp
<acdw>
how is that different to just mentioning the person? I"m guessing some kind of like, msgserv?
rkazak has joined #commonlisp
ndanilov_ has joined #commonlisp
apac has quit [Quit: Konversation terminated!]
apac has joined #commonlisp
ndanilov has quit [Ping timeout: 256 seconds]
kchanqvq8 has joined #commonlisp
Fade has quit [Changing host]
Fade has joined #commonlisp
<pl>
acdw: yes, will work for people who are not around
<acdw>
nice
rkazak has quit [Ping timeout: 256 seconds]
apac has quit [Ping timeout: 245 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
nullbath has quit [Remote host closed the connection]
apac has joined #commonlisp
jonatack has joined #commonlisp
mgl_ has quit []
garlic0x1 has quit [Ping timeout: 256 seconds]
pve has quit [Quit: leaving]
jon_atack has quit [Ping timeout: 256 seconds]
X-Scale has quit [Ping timeout: 252 seconds]
mgl_ has joined #commonlisp
kchanqvq has quit [Quit: Client closed]
kchanqvq has joined #commonlisp
rkazak has joined #commonlisp
istewart has joined #commonlisp
rkazak has quit [Ping timeout: 256 seconds]
nullbath has joined #commonlisp
rkazak has joined #commonlisp
dra has quit [Read error: Connection reset by peer]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
attila_lendvai_ has quit [Ping timeout: 255 seconds]
ingeniot has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 252 seconds]
cmack has quit [Ping timeout: 256 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
ingeniot has quit [Ping timeout: 272 seconds]
jon_atack has quit [Ping timeout: 256 seconds]
admich1 has quit [Ping timeout: 255 seconds]
admich1 has joined #commonlisp
jon_atack has joined #commonlisp
dra has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
mgl_ has quit []
ingeniot has joined #commonlisp
<acdw>
so can i (:use :iter) in my code?
<acdw>
i don't want to (iter:iter (iter:for i iter:from 1 iter:to 10) ...)
<|3b|>
you /can/ do lots of things, but USEing packages you don't control can be a bad idea. if they extend the API you might get conflicts (or worse, overwrite things without noticing until you try to also use something else that expects the new API to work)
<|3b|>
you can also import the specific symbols you don't want to prefix, or make a shorter nickname if (i:iter ...) is close enough
ingeniot has quit [Ping timeout: 245 seconds]
<jasom>
jackdaniel: Is the 9.5MB of wecl.js becase it's still e.g. a debug-build of ECL, or is it representative of the expected size of ECL on wasm?
<acdw>
right sorry i know i *can* do things. i meant like, have poeple done so and had a good time
<acdw>
i know about the dangers of using packages in general
<TMA>
luckily almost no common lisp library ever changes, because of the lisp curse
<TMA>
;-P
arpunk has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
<jasom>
acdw: The CL Cookbook says "(If you use loop and Iterate in the same package, you might run into name conflicts.)" but otherwise implicity recommends bringing in the whole package.
kchanqvq20 has joined #commonlisp
kchanqvq68 has joined #commonlisp
mgl_ has joined #commonlisp
<Shinmera>
jasom: how big is that js when compressed?
kchanqvq has quit [Ping timeout: 250 seconds]
kchanqvq8 has quit [Ping timeout: 250 seconds]
<shawnw>
I (:use :iterate)/(use-package :iterate) all the time. Only issue is in the CCL repl because CCL-USER has a name conflict.
<aeth>
I find that you can generally USE one thing
<Shinmera>
and that is :cl
<aeth>
I mean, one thing other than CL
<aeth>
because e.g. even alexandria and uiop have a name conflict
<aeth>
but things usually don't conflict with CL
<aeth>
But you can get away with USEing one thing that's not CL
<jasom>
Shinmera: It doesn't look like the server is compressing it, but compressing it with gzip by hand gets it down to 2.4MB
<jasom>
Shinmera: 1.8MB with brotli
<Shinmera>
that sounds like reasonable range to me
<jasom>
Shinmera: I saw the 9.47MB transferred in firefox and thought that *was* the compressed size before looking closer.
<Shinmera>
guess the zerver is missing a "gzip on" directive
fgarcia has quit [Quit: something came up]
<acdw>
jasom: ah, ty
kchanqvq63 has joined #commonlisp
<acdw>
i :use alexandria and serapeum in this project
<jasom>
acdw: and aeth's point (about :use on more than one library nearly always being a bad idea) is a good one;
<Shinmera>
I don't use anything, but local nicknames are nice.
<acdw>
it's my personal webstie that i'm not expecting anyone eles to work on so i am ok w it
<Shinmera>
useing is bad not just because of that. A future update to the packages you're using can also introduce new symbols into your package now, causing unexpected conflicts
<acdw>
that's a good point
<pl>
if you have certain libraries you'd like to include like that, I recommend making a new package which imports specific symbols explicitly and then reexportes the entire :CL with those symbols added
kchanqvq68 has quit [Ping timeout: 250 seconds]
<pl>
also lets you shadow symbols you want to shadow, which used to be useful to ensure things like closer-mop being always used in one's code
<Shinmera>
yea, for bigger frameworks (like radiance or trial) that can be worth it
<pl>
I used to start my projects with specially modified CL and CL-USER that had package conduits, closer-mop, and few other things like that merged
<acdw>
oh that's smart too. for now, i'm just unusing and using local-nicknames
<pl>
it was before local-nicknames existed outside Genera, so... ;)
<acdw>
aha
<pl>
these days local-nicknames make things easier, indeed :)
<acdw>
in other news i'm writing my own shitty orm just for me instead of using one that actually exists
<aeth>
pl: so you finally migrated from Genera?
<pl>
more like I could never afford a working Genera setup
<pl>
but one day I will get a working emulators
chomwitt has quit [Ping timeout: 272 seconds]
kchanqvq20 has quit [Quit: Client closed]
kchanqvq20 has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 256 seconds]
rgherdt has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 256 seconds]
<|3b|>
people :USEing alexandria is why they had to make an alexandria-2 package, so it isn't just the risk of conflicts, or effects on your code
<|3b|>
(well, it is about conflicts, but not about them causing immediate/obvious problems )
brokkoli_origin has joined #commonlisp
rkazak has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 252 seconds]
<aeth>
packages should just have hierarchy and versioning built in
<aeth>
currently, people fake the former with foo/bar and the latter with less standard names like foo-2 or foo.2
kchanqvq91 has quit [Ping timeout: 250 seconds]
lcn_ has quit [Remote host closed the connection]
<jasom>
aeth: I fail to see how reserving a character for separating levels is "faking" hierarchy; Unix paths are just faking hierarchy under that definition.
<jasom>
I think there are *better* ways to accomplish hierarchy, but I don't see the slash custom as being fake.
<aeth>
jasom: it's more that use-reexport isn't built-in
rkazak has quit [Ping timeout: 244 seconds]
<aeth>
and there's at least two packages to do something like that
<aeth>
among other issues
<stanrifkin>
aeth: Are you mod in #gamedev?
<jasom>
aeth: yes; I think uiop is one that offers that right?
kchanqvq30 has quit [Quit: Client closed]
kchanqvq30 has joined #commonlisp
nytpu has quit [Remote host closed the connection]
kchanqvq97 has joined #commonlisp
nytpu has joined #commonlisp
kchanqvq30 has quit [Ping timeout: 250 seconds]
kchanqvq20 has quit [Quit: Client closed]
kchanqvq20 has joined #commonlisp
rkazak has joined #commonlisp
mrvdb- has joined #commonlisp
mrvdb has quit [Read error: Connection reset by peer]