freenode/#lisp - IRC Chatlog
Search
12:06:29
|3b|
ACTION has it using dwm instead of wglSwapInterval where appropriate, but still not getting it initialized correctly somewhere i think
12:19:28
|3b|
Shinmera: i suspect your window would be created in wrong thread on OSX (if you manage to run glop on OSX in the first place), not really sure exactly what's going on there though
12:23:13
|3b|
ACTION was looking at https://github.com/Shirakumo/trial/blob/master/backends/glop/context.lisp#L181
12:25:45
|3b|
if that isn't called until start, what is in https://github.com/Shirakumo/trial/blob/master/backends/glop/context.lisp#L172 ?
12:26:27
Shinmera
Ah-- you're right, that's wrong. Shouldn't call create-context automatically there.
12:29:16
solene
jackdaniel, I'm writing a software that should run in a "kiosk" mode so I should forbid access to the shell
12:29:52
Shinmera
I've had reports of harmony segfaulting on windows, so I've been meaning to dive back into platform bullshit anyway.
12:31:27
Shinmera
But I should have time to check things this week. Last exam was today, so I finally got my mind (and schedule) free again
12:32:38
solene
|3b|, I tried with this code but it triggers a "simple error" now : (handler-case (main) (interactive-interrupt () (quit)))
12:32:48
|3b|
ACTION wonders if glop would get confused if you opened the window twice (assuming you also create-context elsewhere)
12:33:17
Shinmera
I'm not sure if that's the case right now, it's been a while since I rewrote the context stuff.
12:37:03
solene
|3b|, I still have the same error with (handler-case (main) (sb-sys:interactive-interrupt () (quit)))
12:37:27
|3b|
(which i think is technically a package you aren't supposed to use, but not much choice here, so hopefully they won't change it any time soon)
12:38:58
solene
|3b|, oh sorry I didn't see, it didn't compiled with ecl so I was trying the same binary. ecl can't find sb-sys or sb-ext
12:40:39
|3b|
CL spec doesn't (and shouldn't) say anything about ctrl-c, so details are specific to each implementation
13:17:22
Xach
From my stats, it was only used for a few thousand requests, most recently on 2013-10-08.
13:26:17
Xach
heh, since recording started, there have been 124,930 ECL requests, 1,389,988 Clozure CL requests, and 10,851,074 SBCL requests.
13:42:52
Cthulhux
it has an insane default price which is not THAT much better. also, if you want multi-platform lispworks, it IS insane
14:41:43
Xach
thanks dim for getting me started with importing log stats into postgres. finding out stats was a breeze.
14:47:14
Xach
dlowe: no, probably just download stuff as needed. or maybe just use shopmade libraries.
15:05:00
|3b|
and does look like someone removed asdf-install links from cliki, so probably hasn't worked in a while (and probably many of the links were dead by then anyway)
15:06:39
tfb
Cthulhux: LW's price is only insane if your time is very cheap (which, for someone doing something for themselves it is: I am not trying to suggest it's not expensive). It's less than four days of a contractor's daily rate for instance, so maybe 2% of their annual cost. If it makes them more than 2% more efficient it's paid for itself.
15:07:37
killerstorm
Hi people, does anyone have experience with cl-yacc? Specifically, you do you deal with optional productions.
15:09:06
killerstorm
I'm trying to fix a library which uses (empty) production as an alternative for optional productions. but that doesn't seem to work, and I think I know why...
15:19:56
Cthulhux
tfb: Lisp is a free time hobby for me, so I'm really not in a position to judge here.
15:25:19
tfb
Cthulhux: this probably doesn't belong here, but commercial SW that's not popular has to be expensive: if I sell only n copies of product x per year, I need to charge at least (salary + costs)/n per copy, and if n is small ...
15:28:56
beach
Cthulhux: That's why software is a winner-takes-all market. Bigger market share means price can be lower, which means increased market share.
15:40:53
Cthulhux
Which also means that it is weird that SBCL hasn't spawned an enterprise-grade IDE yet.
15:46:16
Cthulhux
I thought the general opinion is that LispWorks is an "enterprise-grade IDE" which is why they can take "enterprise-grade prices"
15:46:39
beach
Is it "can be handled by developers with almost no training, neither in computer science, in software engineering, nor in programming"?
15:47:35
jmercouris
I'm trying to come up with a good scenario for where you'd use hooks in your browser, so far I've come up with a ficticious scenario where every time you set a bookmark, you want to append the web page to a file on your computer with some keywords as part of a journal or something
15:48:03
jmercouris
this scenario will be used as part of a blog post promoting next, so any ideas that play to the strengths of CL and offer some wow factor are appreciated
15:48:11
|3b|
price is for support, gui libs and other libs, and running existing expensive code that depends on them :)
15:48:18
beach
jmercouris: CLX does have a small amount of non-Lisp code. But I don't see why you say that it would "have to".
15:49:17
jmercouris
beach: Well, it's not turtles all the way down is it? ultimately we have to interact with something that isn't lisp
15:49:52
jmercouris
beach: sure, you have to have some knowledge of which syscalls are available on a system, those have to be embedded into your CL system
15:50:11
jackdaniel
beach: to my best knowledge there is no ffi usage nor foreign code (there are some implementation-specific bits of course)
15:51:15
jackdaniel
jmercouris: clx "talks" with X server via a socket, it doesn't perform syscalls or library calls on it
15:51:23
|3b|
jmercouris: after running firefox for a while, it tends to take up lots of ram, and sometimes CPU. would be nice to be able to dig into things and see which pages are causing problems. or see which pages try to use various features (camera or webvr or whatever)
15:53:21
jmercouris
|3b|: That would be interesting, I'll keep that in mind, but for now I'm looking for a cool way to use hooks basically
15:54:26
|3b|
jmercouris: yeah, that's what i meant (assuming your definition of hooks would let me do that sort of thing) :)
15:54:48
jackdaniel
beach: there are files two with ".c" extension but they are not loaded with the system (they are legacy files)
15:55:10
jmercouris
|3b|: You can hook into literally any type of function, question is moreso, how would I determine when to check, like after which events? every time I open a page? to issue a warning that a page has very slow js?
15:56:10
tfb
jmercouris: can you hook things in the way that (say) Stylish does / did, to control how things render?
15:56:56
jmercouris
tfb: You may hook to literally any event, so you may inject css or js or whatever before a page load
15:57:12
|3b|
jmercouris: yeah, now that i think about it, probably too late to use hooks by the time i decide i want to find out what's happening :/
15:58:02
tfb
ie 'I'm about to render something from Wikipedia.org, insert this CSS to make it look like I want'
15:59:18
jmercouris
then you need something like an alist as well for different JS on different sites
15:59:26
beach
jackdaniel: This is what I found: https://github.com/sharplispers/clx/blob/master/socket.c
16:08:28
beach
jmercouris: So I was wrong. CLX not only does not have to use foreign code, not even "technically". And it doesn't.
16:31:33
Xach
I'd like to make a chart of the trends over time. CCL and SBCL used to be closer (I think)
16:32:55
dlowe
I've often thought that what would be neat would be an app server that was able to take a higher-level widget description with a socket protocol.
16:33:52
dlowe
and web browsers more recently, though they're a bit overpowered for what I was thinking.
16:48:00
lerax
Hey guys, how I can fetch all the symbols on a package? I know that I can use (apropos <string-designator> :package), but there is a string-designator like a wild card for all symbols?
16:49:01
pjb
(length (com.informatimago.common-lisp.cesarum.package:list-symbols :cl-user)) #| --> 856 |#
16:49:30
pjb
(length (com.informatimago.common-lisp.cesarum.package:list-symbols :cl-user :exported t)) #| --> 0 |#
16:52:51
pjb
lerax: however, (apropos-list "") is probably non-conforming: it wil give you results depending on the implementation.
16:53:55
pjb
Case-sensitivity and extensions such as regular expressions are implementation dependent.
17:05:24
sjl
jackdaniel: small typo in the charms tutorial post: in the First Application section it says it makes a 50x15 window, but the call is (charms:make-window 50 50 10 10)
17:36:27
Xach
lerax: projects in ~/quicklisp/local-projects/ will be loaded before projects quicklisp provides itself!
17:36:46
Xach
lerax: http://blog.quicklisp.org/2018/01/the-quicklisp-local-projects-mechanism.html has more details
17:59:27
sigjuice
lerax if you are running slime then C-c C-d C-p ql RET will do the equivalent of (apropos "" :ql)
18:10:50
whoman
in emacs, the inspector has a tree and you can click on stuff and perform actions with menus.
18:11:19
ecraven
yes, but I want to see the actual slime->swank messages, those won't show up in the inspector
18:13:04
whoman
logically, if *slime-events* contains the slime-swank messages, there they are, upon inspection
18:42:24
phoe
(documentation #'foo 'function) ;=> WARNING: unsupported DOCUMENTATION: doc-type FUNCTION for object of type STANDARD-GENERIC-FUNCTION
18:45:00
beach
Hmm, no there is a method for it: documentation (x function) (doc-type (eql 'function))
18:46:15
phoe
Not really a bug, because "An implementation is permitted to discard documentation strings at any time for implementation-defined reasons. "
19:10:36
ecraven
would it be possible to properly export swank::inspector-call-nth-action from swank, so that it is accessed by swank:inspector-call-nth-action (single colon)?
19:11:02
ecraven
I have a mostly-working swank for r7rs schemes, but :: does not work at all under kawa, its reader dies (it is used for type annotations there)
19:11:20
ecraven
I know that scheme is not at all a priority, but it would be a simple change and should not influence anything else much
19:12:20
jackdaniel
I don't see technical problems with that - make a PR and see what maintainers say
19:13:23
ovidnis
I'm getting a compile-file-error while compiling #<CL-SOURCE-FILE "static-vectors" "impl"> when I try to quickload caveman2
19:28:14
ecraven
jackdaniel: https://github.com/slime/slime/pull/428 I hope this is simple enough to get it merged ;)
19:33:07
Xach
ovidnis: i usually download the latest binary if i'm starting from scratch, or build from git if i already have a binary
19:44:32
phoe
practically, it still tends to fail here and there, but it makes for a very nice SBCL installer.
19:47:04
phoe
Some people like having a tool that can switch between different Lisp implementations and versions
19:58:40
ebrasca
Can I format 3 as "03" instead of " 3". I am using someting like (format t "~2x" i)
20:15:35
shrdlu68
When comparing two bit vectors with #'equal, I notice it does not immediately return nil if the bit vectors are of different lengths.
20:21:58
Bike
both the definition and transform for bit-vector-= check for length equality before looking at the actual bits, as far as i see
20:39:39
stacksmith
Greetings. Am I correct about this: if a macro has an optional or keyword parameter with an init-form, and the init-form relies on another parameter, such init-form needs to be backquoted with said parameter unquoted to expand correctly... Yikes.
20:45:12
stacksmith
It can be implemented with an conditional that selects one of two expansions - one using a provided parameter, another into a let form to evaluate it once, I suppose.
20:46:33
stacksmith
_death, I am not sure about the inference about the interface... Technically, one should be able to _use_ a macro or a function without knowing which one it is...
20:48:01
ig88th
where am I supposed to put .config/common-lisp/source-registry.conf.d/projects.conf on windows?
20:48:45
ig88th
I've tried my home directory C:\Users\ig88t\ as well as C:\Users\ig88t\AppData\Roaming\ (which is where emacs wants it's .emacs.d folder, so I thought asdf might be the same)
20:49:25
pjb
stacksmith: this means, for macros, at macroexpansion-time, which is usually at compilation-time.
20:50:17
Bike
The manual says "For Windows users, and starting with ASDF 3.1.5, start from your %LOCALAPPDATA%, which is usually ~/AppData/Local/ (but you can ask in a CMD.EXE terminal echo %LOCALAPPDATA% to make sure) and underneath create a subpath config/common-lisp/source-registry.conf.d/."
20:50:23
pjb
stacksmith: whether you need to quote or not the initform depends on what you what to evaluate!
20:53:06
Bike
it's in kind of a random place, footnote 3 here https://common-lisp.net/project/asdf/asdf.html#Configuring-ASDF-to-find-your-systems
20:53:52
ig88th
Bike: I came across that page earlier but I guess I didn't check the footnotes! thank you!
20:54:04
stacksmith
pjb: indeed it does... A bit confusing with multiple evaluation issue, as it is not immediately obvious how many times ,a gets expanded..
20:54:12
pjb
stacksmith: and indeed, as _death mentionned, macros can be expanded any number of times, and not necessarily while compiling or intepreting (eg. they can be called by the editor or some other tools). Therefore expressions evaluated by the macros, including their initforms, must be prepared to be evaluated in strange environments.
20:57:06
pjb
stacksmith: (defmacro foo (&optional (a (with-open-file (io "foo" :direction :io :if-exists :append :if-does-not-exist :create) (prog1 (progn (file-position io 0) (read io nil 'foo)) (file-position io (file-length io)) (print (get-universal-time) io))))) `',a)
20:59:44
stacksmith
pjb: - is there a preferred way to deal with this? I haven't seen anything mentioned about this... I suppose the wisest approach is to use &key to be certain about the argument being supplied, and expand a let form evaluating the original argument, then the 'optional one'...
21:02:05
pjb
stacksmith: the only thing is that if your macro has side effects, then you must ensure that it still give the same results for it to be conforming.
21:03:44
stacksmith
pjb: Not complaining at all! Just trying to understand if (defmacro foo (a &optional (b `(+ 1 ,a)) `(values ,a ,b)) should be implemented differently because of uncertainty about the number of ,a expansions...
21:04:52
pjb
stacksmith: in this case it doesn't matter, since (+ 1 a) will always return the same thing, without side effect. (loop with result repeat (1+ (random 10000)) do (setf result (+ 1 a)) finally (return result)) will always do the same thing as (+ 1 a).
21:05:47
pjb
Yes, in this case, either you document your macro, and let the user deal with it, or you write it otherwise, so that the expression bound to A is evaluated only once.
21:06:28
Bike
there's no uncertainty. if you pass one form, it'll be evaluated twice, if the + doesn't signal an error etc
21:07:15
pjb
Something like: (defmacro foo (a &optional (b nil b-p)) (let* ((a ,a) (b (if b-p b (+ 1 a)))) `(values ,a ,b)))
21:07:36
ig88th
okay I can't seem to figure out where the config file should be on windows. I've located this function (https://github.com/quicklisp/quicklisp-controller/blob/master/asdf.lisp#L6247) in asdf that I think hints at the right answer, but I am unsure of what to make of it
21:07:54
pjb
Bike: macro calls can be evaluated more than once. if foo evaluates a once, then (foo (incf a)) may increment a 1 or more times.
21:09:47
phoe
stacksmith: you'll need to pull the initform from the lambda list and put it in the body.
21:11:43
stacksmith
There is little advantage in macros having anything complicated in init-forms, I suppose. Functions in SBCL wind up having multiple entry points, for efficiency.
21:13:39
pjb
stacksmith: Casting Spels in Lisp Conrad Barski, M.D. http://www.lisperati.com/casting.html
21:16:11
pjb
stacksmith: This is a lego box, it doesn't tell you what to build, it gives you little bricks, and you do whatever you want with them.
21:17:07
pjb
on the other hand, it's true that there seem to be a market for horrors such as: https://www.smythstoys.com/ie/en-ie/toys/lego-and-bricks/lego-star-wars/lego-75159-star-wars-death-star/p/156074
21:18:51
stacksmith
Again - not complaining, just amused by all things not written about concerning Lisp - it's been around long enough that when encountering an issue you _know_ you are not the first one.
21:19:20
pjb
stacksmith: it's assumed programmers have brains. There's no need to write all the trivial consequences and deductions.
21:19:50
pjb
And it would be misleading, since the applicability conditions would be bigger than the code involved!
21:20:37
jmercouris
when I write :fish in CL, what exactly am I writing? what does the ":" symbol do?
21:22:30
jmercouris
I'm trying to explain the hook code I wrote in a blog post, and I'm trying to be accurate
21:23:35
stacksmith
pjb: It is possible I am a moron, and now that I see it clearly - it's not too complicated... However, there is much repetition about much more obvious stuff in Lisp literature - mentioning "watch out for macro init-forms" could not really hurt.
21:24:42
pjb
stacksmith: for people who've known lisp a long time and who've seen it evolve along the way, all those things are obvious.
21:25:17
pjb
stacksmith: for newbies, it may be surprising, and foremost, there may be a shorter path than to read all the historical document (it happens that I just like to do that, but it takes a lot of time).
21:25:52
stacksmith
pjb: however, when I converted a function to a macro having stayed up too long, not so obvious...
21:26:01
pjb
stacksmith: but it's hard for old timers to see what indications the new generations need to walk the short path. So you should take notes while you're doing it, and then write a tutorial for your fellow newbies.
21:27:06
stacksmith
pjb: with all due respect to you old timers - I no longer consider myself a newbie...
21:27:36
pjb
jmercouris: yes, the keyword package is a global resource, so it's useful to pass symbols across packages without having to export and import them.
21:27:50
pjb
jmercouris: on the other hand, since it's a global resource, you also need to be careful when using keywords.
21:28:27
pjb
jmercouris: for example if your library uses symbol-plist, it should not use keyword as keys, since other packages doing the same could be using the same keyword for different thing: collision. Instead, use a symbol from your own package.
21:29:01
pjb
stacksmith: yes, you're in the middle, the best place to better understand the needs of the newbies, and still with enough knowledge of lisp to explain them (and ask us).
21:30:19
pjb
So it's interesting because it contains prose and explaination, but it's misleading because it's pre-CL, so it contains things that are not true in CL.
21:30:52
_death
pjb: but it contains more elaborate explanations and I found it very useful to read when I started
21:37:01
phoe
it'll give you a string by default, or an octet-vector if it detects that the contents aren't human-readable (which it misinterprets, sometimes, for JS for example)
21:39:36
phoe
_death: I am with you there, it should either uniformly return octetstreams or uniformly return strings or signal things
21:41:21
_death
I also discovered the other day that dexador leaks connections unless you manually tell it to clear the pool.. it ate up all available file descriptors for the process so I did something like (sb-posix:close (+ 10 (random 1000))) (ok, not that smart, but you get the idea ;)
21:54:41
jmercouris
plump:serialize does seem to in fact serialize the object, but I'd like a string of the inner html
21:58:40
k-hos
I assume the same applies to macros as well? would it be possible then to iterate over the arguments and emit code then for each one?
21:59:07
White_Flame
macros are basically just functions that are called at compile-time, that take source code & return source code in sexpr format
21:59:29
jmercouris
Shinmera: right, let's say I've started here: (defparameter docy (lquery:load-page "<html><body>Lol some text</body></html>"))
21:59:51
White_Flame
they will run, and their return value will be used as replacement source code for the original macro call
22:00:35
White_Flame
k-hos: so yeah, many times the body of a macro is just a sexpr template that runs embedded bits of code to transform the parameters to the output code
22:01:06
White_Flame
k-hos: including iterating over list-based parameters or the &rest of the argument list
22:01:24
jmercouris
Shinmera: So I assume I have to pass around this vector to some other function to get the data?
22:02:05
Bike
(defmacro foo (&rest vargs) ...) say you have (foo a (+ 1 3) 9), then vargs is a list of the symbol A, the list + 1 3, and the number 9
22:02:14
White_Flame
k-hos: in (defmacro foo (&rest params) ...), or defun, params is just a normal list that you can take the length of, map over, etc
22:02:29
Shinmera
jmercouris: If you just want the text, and not the inner html, you can just use TEXT
22:03:44
stacksmith
phoe: since you mentioned alexandria:once-only - do you know of a way to make the gensyms it creates ignorable?
22:05:11
jmercouris
IDK man, I have literally no idea, because I don't see a function TEXT within lquery
22:06:30
Shinmera
(lquery:$1 (initialize "<html><body><a>lol") "body" (children) (serialize)) ; => "<a>lol</a>"
22:06:51
_death
stacksmith: some years ago I wrote something for that, but never used it.. https://gist.github.com/death/8551cf20e2bf296455a3e8cf3f3be11b
22:07:55
aeth
What do people recommend for generating static HTML and CSS? (not a web application, just for static HTML)
22:08:35
Shinmera
The first argument to any lQuery function is the list of operators that comes down the line of the lQuery chain
22:09:43
Bike
emaczen: the problem of course is that the condition is an object that has to be allocated...
22:10:29
Shinmera
($ (initialize "foo")) ; => #(#<element>), now if we ($ (initialize "foo") (bla)) bla is gonna get that vector as its first argument.
22:10:30
emaczen
Bike: I'm probably better off looking into an emacs script that just restarts... but I'll probably end up just doing this manually...
22:10:50
Shinmera
And the result of bla is going to be used as the first argument for the next operator, if there was one
22:11:32
stacksmith
_death: the universe presents you a with sequence of lessons. You will repeat each lesson until you learn. ;)
22:11:40
aeth
jmercouris: I want to set up a simple Gitlab page that directs to all my projects, documentation, etc. Very simple.
22:13:12
jmercouris
aeth: Here's the example of my source: https://github.com/next-browser/site-source
22:14:17
aeth
jmercouris: I use org-mode for lots of things but I find markdown to be easier for things that people have to read. (And I'd probably host the site in a public repo.)
22:16:42
_death
aeth: I hacked a static blog generator with a friend some months ago.. it took two days or so to get something sane and workable.. I looked at coleslaw a while ago and it was similar
22:17:40
Shinmera
Anyway, did you see the examples I posted that should answer your initial question or did you skip over that?
22:18:12
aeth
_death: It doesn't sound like a hard project (I already generate GLSL, which is a more syntactically complicated language), but it also doesn't sound like a good use of my time. I have 5 issues open, but if I translated all of my designs into feature requests in my issue tracker, it's probably closer to the 100 to 999 range.
22:18:23
jmercouris
I thought you were implying there were some examples in the documentation that covered it
22:18:34
jmercouris
I didn't read the documentation cover to cover, just looked through the API to try to figure it out
22:22:51
aeth
I'm surprised there's nothing that has really hit HN yet. https://news.ycombinator.com/from?site=tymoon.eu
22:28:19
Shinmera
Though I've been wondering if I should even bother posting those too since I don't really seem to get extra visitors aside from the regularls anyway
22:45:13
shrdlu68
What was that function for reporting memory stuff in an implementation-defined manner?
22:48:26
Shinmera
SBCL recently got a function to get the size of an object. Can't recall what it's called, though
22:51:25
shrdlu68
Does an N-bit unsigned-integer consume as much memory as an N-bit simple-bit-vector?
22:52:59
phoe
integers would most likely be stored in boxes, be it fixnums or bignums, and vectors also need boxes
22:54:02
aeth
Oh... As far as forum-style things with Lisp content, I'm aware of comp.lang.lisp, r/lisp and r/common_lisp on reddit, the lisp and common-lisp tags in stackoverflow, and at least one traditional-style phpBB forum (the one I can find right now is LispForum, but I'm not sure if there is more than one because all phpBB looks the same). If anyone wanted me to elaborate on "one of the few Lisp places"...
22:54:55
aeth
Only reddit (and maybe comp.lang.lisp if it's major?) seem suitable for announcements rather than tech support
22:56:16
aeth
pjb: you're not kidding, gavino is... all but one of the February content (as far as thread creators goes)
22:57:22
aeth
People who actually spend time doing other things cannot possibly compete with someone who literally lives on the Internet.
22:59:58
aeth
pjb: One day, all of the content on the Web will be created by spam bots and trolls (and it will be increasingly hard to tell them apart) as people move on to the next thing.
23:03:13
aeth
I've already stopped using a lot of the Web because it has lowered in quality to essentially nothing. e.g. I don't read news articles anymore. (And it doesn't help that a significant fraction of shared news articles aren't even available without a paywall... The WSJ is probably the worst offender here. People probably share it based on the headline alone.)
23:03:33
aeth
But I just go to other websites instead. Nothing has really threatened it except apps, which are like modern websites, but worse and without easy adblocking.
23:05:21
shrdlu68
After I run a function, #'room tells me that there are all these objects taking up memory that weren't there before.
23:05:52
aeth
shrdlu68: disassemble that function and look for allocations, which is especially easy in SBCL
23:06:19
aeth
No need to guess with things like room, you can get exact results with disassemble or sb-profile (one method reads and looks for allocations, the other detects consing)
23:06:35
pjb
shrdlu68: also, if you work in the REPL, the variables * ** *** / // /// - + ++ +++ keep references to previous stuff.
23:07:32
shrdlu68
That might be it, because running the function twice with the same large input exhausts heap the second time.
23:08:20
aeth
shrdlu68: Is it possible to preallocate something and setf parts of that preallocated thing?
23:08:46
aeth
You could even make it external to the function, put it in a *foo* and recycle it each call. (foobar *foo* 1 2 3) or something
23:10:25
shrdlu68
The function creates a large hash-table, but it's not persistent. Should not be around after the function exits.
23:13:27
jasom
ACTION has finally gotten a full REPL in the browser running only on the client after trying and failing for years.
23:15:32
jasom
phoe: I mean not "Run this lisp code on the server and print the result" but "run this lisp code in the browser and print the result"
23:16:55
jasom
phoe: trivially kawa comes up in under 5 seconds and is an example for the JVM I am using
23:21:45
jasom
http://plasma-umass.org/doppio-demo/ <-- kawa is available from the command line there
23:22:51
White_Flame
(defmacro foo (&rest params) `(progn ,@(mapcar (param) `(call-something ,param))))
23:23:55
White_Flame
(defmacro foo (&rest params) `(progn ,@(mapcar (lambda (param) `(call-something ,param)) params))))))))))))))))))))))
23:25:20
White_Flame
just do (mapcar (lambda (param) `(call-something ,param)) '(1 2 3 4 5)) individually
23:26:07
White_Flame
hence macros tend to be more advanced, after you're more familiar with the language
23:26:27
White_Flame
a rule of thumb is that you shouldn't use a macro unless you can't express it with a function
0:01:03
jasom
aha, I found what is so slow with ABCL on Doppio: compiling DEFUNs takes a *long* time; I wonder if I could precompile the initialization lisp script to a .class