istewart has quit [Quit: Konversation terminated!]
rkazak has quit [Ping timeout: 265 seconds]
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 245 seconds]
edgar-rft_ has joined #commonlisp
AetherWind has joined #commonlisp
edgar-rft` has quit [Ping timeout: 260 seconds]
alfiee has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
Pixel_Outlaw has quit [Quit: Leaving]
alfiee has quit [Ping timeout: 260 seconds]
beach` is now known as beach
akoana has quit [Quit: leaving]
<beach>
thuna`: I don't see a big difference in readability. But you should definitely prefer to do (let ((transformed-form (some-transformation form))) (call-next-method transformed form) (foo transformed-form))
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
Demosthenex has quit [Remote host closed the connection]
bendersteed has joined #commonlisp
rkazak has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
alfiee has joined #commonlisp
Demosthenex has joined #commonlisp
Demosthenex has quit [Client Quit]
Demosthenex has joined #commonlisp
Demosthenex has quit [Client Quit]
rkazak has quit [Ping timeout: 244 seconds]
Demosthenex has joined #commonlisp
alfiee has quit [Ping timeout: 245 seconds]
amb007 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
rkazak has joined #commonlisp
pabs3 has quit [Read error: Connection reset by peer]
pabs3 has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
Pixel_Outlaw has joined #commonlisp
Pixel_Outlaw has quit [Client Quit]
AetherWind has quit [Quit: Lost terminal]
GalaxyNova has quit [Remote host closed the connection]
mi6x3m has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
<dmho>
I'm compiling some code to javascript (using Parenscript) by calling PARENSCRIPT:PS-COMPILE-FILE inside a closure that is called when the file is modified. Using ORG.SHIRAKUMO.FILE-NOTIFY:WITH-EVENTS a closure is created containing the aforementioned logic that does the job when modification events come in.
<dmho>
Curiously the compilation fails to correctly compile a number of Parenscript forms in addition to some of my own forms that I defined to support some of the ES6 syntax On a hunch I put a (CL:IN-PACKAGE :MY-PACKAGE) form at the top of the closure and it fixed the issue.
<dmho>
I assume that the required compilation environment is lost somehow when the closure is evaluated 'elsewhere', and the symbols that Parenscript relies on to determine the correct form aren't imported there there. Has anyone had a similar issue before? This is without a doubt the only time I have ever used IN-PACKAGE not as a top-level form, and I'm not even sure if it's correct to use like this, or what the drawbacks are.
mi6x3m has quit [Remote host closed the connection]
alfiee has joined #commonlisp
pillton has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
<Shinmera>
you could try wrapping (let ((*package* #.*package)) ...) around your parenscript compile forms.
<Shinmera>
err #.*package*
<Shinmera>
this'll ensure that the current package at runtime of the form remains the same as the one during compile-time.
<Shinmera>
granted though I have no clue what parenscript does, so
alfiee has quit [Ping timeout: 265 seconds]
bendersteed has quit [Quit: bendersteed]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
<dmho>
That works and feels less weird to me, so thanks!
Demosthenex has quit [Remote host closed the connection]
<dmho>
Oh and thank you for creating file-notify, it's just really, really nice to be able to use existing solutions without fuss when the need arises.
<jackdaniel>
foss saves us from fuss!
Demosthenex has joined #commonlisp
alfiee has joined #commonlisp
<Shinmera>
dmho: Glad it works for you
alfiee has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
szkl has joined #commonlisp
herjazz has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
alfiee has joined #commonlisp
jonatack has quit [Ping timeout: 265 seconds]
alfiee has quit [Ping timeout: 244 seconds]
rkazak has joined #commonlisp
Guest47 has joined #commonlisp
ingeniot has joined #commonlisp
dnhester26 has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
bpanthi977 has joined #commonlisp
alternateved has quit [Remote host closed the connection]
<dnhester26>
dmho: how has your experience using parenscript been?
<ixelp>
GitHub - helmutkian/cl-react: Common Lisp (Parenscript) utilities for building web apps in ReactJs
bpanthi977 has quit [Ping timeout: 252 seconds]
<dnhester26>
I'm interested in writing some typescript/react and javascript/react probably in the coming weeks using CL to be able to generate front end things from my backend code, but haven't actually started, so I'm very curious about your experience
Thermoriax has quit [Ping timeout: 260 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 265 seconds]
alternateved has joined #commonlisp
rkazak has joined #commonlisp
varjag has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
ingeniot has quit [Ping timeout: 240 seconds]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #commonlisp
alfiee has joined #commonlisp
mange has quit [Quit: Zzz...]
alfiee has quit [Ping timeout: 260 seconds]
grawlinson has quit [Ping timeout: 265 seconds]
bpanthi977 has joined #commonlisp
grawlinson has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
chsasank has quit [Quit: Ping timeout (120 seconds)]
alfiee has joined #commonlisp
ingeniot has quit [Ping timeout: 240 seconds]
chsasank has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
alfiee has quit [Ping timeout: 252 seconds]
cage has joined #commonlisp
Guest64 has quit [Killed (ozone (No Spam))]
Guest64 has joined #commonlisp
danza has joined #commonlisp
Guest64 has quit [Killed (ozone (No Spam))]
rkazak has quit [Ping timeout: 260 seconds]
NotThatRPG has joined #commonlisp
ldb has joined #commonlisp
vardhan has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
danz94407 has joined #commonlisp
skin_ has joined #commonlisp
danza has quit [Read error: Connection reset by peer]
varjag has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 260 seconds]
alfiee has joined #commonlisp
eddof13 has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
rkazak has joined #commonlisp
kevingal has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
Guest64 has joined #commonlisp
ColinRobinson has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
apac has quit [Ping timeout: 248 seconds]
Guest64 has quit [Quit: Client closed]
Guest64 has joined #commonlisp
Guest64 has quit [K-Lined]
mwnaylor has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
kevingal has quit [Ping timeout: 248 seconds]
alfiee has joined #commonlisp
danz94407 has quit [Remote host closed the connection]
danza has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
jonatack has joined #commonlisp
alfiee has quit [Ping timeout: 265 seconds]
rkazak has joined #commonlisp
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
amb007 has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
ldb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
yottabyte has joined #commonlisp
rkazak has quit [Ping timeout: 246 seconds]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
rkazak has joined #commonlisp
ec has quit [Ping timeout: 264 seconds]
mwnaylor has quit [Ping timeout: 244 seconds]
zxcvz has joined #commonlisp
ebrasca has joined #commonlisp
apac has joined #commonlisp
zwr has quit [Read error: Connection reset by peer]
zxcvz has quit [Quit: zxcvz]
zlqrvx has quit [Ping timeout: 252 seconds]
zwr has joined #commonlisp
dstein64- has joined #commonlisp
alfiee has joined #commonlisp
zlqrvx has joined #commonlisp
NotThatRPG has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
dstein64 has quit [Ping timeout: 265 seconds]
dstein64- is now known as dstein64
alfiee has quit [Ping timeout: 245 seconds]
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Ping timeout: 244 seconds]
MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #commonlisp
akoana has joined #commonlisp
waleee has joined #commonlisp
shka has joined #commonlisp
puke has quit [Ping timeout: 272 seconds]
shka has quit [Client Quit]
puke has joined #commonlisp
shka has joined #commonlisp
attila_lendvai has quit [Ping timeout: 265 seconds]
Inline has quit [Quit: Leaving]
danza has quit [Remote host closed the connection]
danza has joined #commonlisp
alfiee has joined #commonlisp
mishoo has quit [Ping timeout: 244 seconds]
bjorkintosh has quit [Quit: "Every day, computers are making people easier to use." David Temkin]
alfiee has quit [Ping timeout: 248 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
zxcvz has joined #commonlisp
akoana has quit [Quit: leaving]
danz96699 has joined #commonlisp
ingeniot has joined #commonlisp
danza has quit [Ping timeout: 272 seconds]
attila_lendvai has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 260 seconds]
<dmho>
dnhester26: The experience has been really good. It's the first time I've used Parenscript, but things have largely gone without a hitch.
danz96699 has quit [Remote host closed the connection]
danza has joined #commonlisp
<dmho>
I'm using vanilla js + dom, so no react. Instead I am working on a declarative solution for specifying UI components that memoises dom nodes to allow rerendering the view in an efficient manner.
danza has quit [Remote host closed the connection]
<dmho>
I want to follow modern practices for bundling web apps so I use Vite. It also serves well as a development server with hot module reloading, but I wanted to structure my webapp using ES modules so that necessitated injecting support for ES6 module import/export statements.
<dmho>
Into the Parenscript compiler
danza has joined #commonlisp
<dmho>
Paren6 has import export forms but they compile to CommonJS modules, and I was concerned that they would not work with Vite (but I didn't try). Getting Vite set up with StyleXjs was challenging enough given my inexperience with the ecosystem.
cage has quit [Quit: rcirc on GNU Emacs 29.4]
<dmho>
On its own, using StyleX required injecting support for ES6 arrow functions into Parenscript as there is a hard requirement for their use within dynamic style declarations. Paren6 is built on top of Parenscript so it's ES6 forms compile to ES5 syntax constructs and that didn't suit the requirements.
ingeniot has quit [Ping timeout: 240 seconds]
khinsen has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
khinsen has left #commonlisp [#commonlisp]
alfiee has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
alfiee has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 246 seconds]
mwnaylor has joined #commonlisp
mwnaylor` has joined #commonlisp
shmorg83 has joined #commonlisp
jonatack has quit [Ping timeout: 272 seconds]
apac has quit [Ping timeout: 265 seconds]
jonatack has joined #commonlisp
rkazak has joined #commonlisp
danza has quit []
shmorg83 has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Excess Flood]
amb007 has joined #commonlisp
Lord_of_Life has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
alfiee has joined #commonlisp
jonatack has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
mulk has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
Lord_of_Life has quit [Excess Flood]
alfiee has quit [Ping timeout: 248 seconds]
mulk has joined #commonlisp
Lord_of_Life has joined #commonlisp
attila_lendvai has quit [Ping timeout: 265 seconds]
amb007 has quit [Ping timeout: 265 seconds]
alternateved has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 265 seconds]
shka has quit [Quit: Konversation terminated!]
Perflosopher03 has quit [Ping timeout: 260 seconds]