freenode/#lisp - IRC Chatlog
Search
13:33:53
pve
Hi! I would like to give instances of my generic function class a default "function". Is the correct place to do this in "initialize-instance :after ((gf my-gf-class) ... " using set-funcallable-instance-function?
13:46:28
jackdaniel
so when you add /first/ method and /second/ method, and remove /first/ method.. :-)
13:46:32
phoe
sounds like you either need a general case for 0 methods or that you need to handle both cases, namely, in some sort of initialization code and then in your remove-method
13:47:26
pve
phoe: exactly, I only asked because I'm having some problems getting it to work using initialize-instance :after
13:49:48
pve
Bike: hmm actually if I replace the default function with something simple like (print 'hello) it does work.. so the problem is most likely elsewhere
13:52:40
pve
the point of this is to improve my "does-not-understand" functionality which uses no-applicable-method, but it only seems to work when the gf has at least one method
13:58:40
obnoxious_glenda
ugh, someone in #programming called lisp a broken toy left in the trash, leaving its stench off for ages
14:00:30
jackdaniel
well, that description comes nice with "lisp is not dead, it just smells funny" :)
14:10:22
Demosthenex
ok, so i'm using clsql with sqlite, and trying to use the s expression based sql queries. i'm translating over some sql with subqueries, ie: select * from table1, (select * from tables2...) as subtable ... and can't see how clsql supports subqueries?
15:31:47
phoe
hhdave: I assume yes; you might also post on /r/Lisp and /r/Common_Lisp and optionally ask Xach for publishing on Planet Lisp for more visibility
15:31:54
jackdaniel
generally speaking I'm sure that there are a few, but more details would make this question less vague
15:32:52
phoe
or you can link us here in #lisp towards the details of the job offer and I'll do my best to distribute it across other channels
15:33:07
hhdave
I work for a small Insurance MGA (https://github.com/Virtual-Insurance-Products) in Devon, England and we're in need of another CL programmer (at least 1). The previous guy we had left to do Rust programming.
15:35:20
hhdave
We have a web based CL application which is accessed by many brokers across the country (mostly - we had/have some clients in Ireland and some in Poland too) selling niche insurance products.
15:35:39
jackdaniel
if you won't find someone full time, let me know -- I'm available at smaller capacity as a consultant
15:36:23
hhdave
@jackdaniel: that's great, thanks. Even if we do find someone it could be useful to have you as a standby in case there's suddenly loads of work. I am, in fact, really busy.
15:37:23
hhdave
CLIM knowledge would certainly be relevant, though my 'CLIM' implementation stuff is probably a bit mad compared to proper McCLIM or such
15:40:25
hhdave
I'm using that clim-web stuff for most of the front end bits that I do nowadays. I've still hardly had time to play with real CLIM.
15:40:59
jackdaniel
https://pbs.twimg.com/media/EUsIcSkWAAI4GgA?format=png&name=large <- the first "window" (topmost)
15:41:36
jackdaniel
(this is a matrix I've used for checking various features the verify if they work)
15:41:49
hhdave
Does it, in any way, make sense to have a McCLIM renderer that could generate actual HTML? I know that wouldn't cover everything and a lot of graphical stuff would need the canvas, but would there be any way to make it work do you think? I know you were playing with TUI renderers or something weren't you?
15:43:03
jackdaniel
it would also make sense to write something more interactive, but that would be much more work and would involve javascript
15:44:06
jackdaniel
also scymtym wrote a broadway backend, that works over gtk protocol that is capable of running in the browser (afair), and that one is truly interactive
15:46:38
jackdaniel
so after cleaning up some McCLIM internals it will be much easier to write a backend
15:49:47
jackdaniel
there is not much written, but here is the part about the port: http://turtleware.eu/static/paste/c404b66e-backend.org
15:50:01
hhdave
It's really great that there seems to be so much more interest in McCLIM these days. A few years ago, about the time I discovered it and started looking into it, it seemed all but abandoned.
15:50:39
phoe
hhdave: please ping me with the details - I'll do the cross-posting later today, but I need to disappear now
15:53:17
hhdave
What I would really like to do is to somehow replace (most of?) my 'strange' impementation of sort of CLIM with McCLIM and just make a backend (and whatever else is needed) to make it good for writing normal(ish) looking web applications Really Easily. I have almost no idea as to the feasibility of that though. I started off just adopting some of the ideas into my codebase, but then ended up gradually (and then less gradually) evolving it to be more
15:55:06
jackdaniel
I have more modest wishes - I'd like to have the coordinate swizzling removed soon-ish :)
17:59:32
dbotton
Does anyone know what the built in packages "gray" and "walker" are in ecl? The manual is blank for them?
18:05:48
Alfr
dbotton, Gray Streams is a rejected proposal for the standard, a number of implementations have it tough. http://www.nhplace.com/kent/CL/Issues/stream-definition-by-user.html
18:06:52
White_Flame
usually the walker goes through a source code form, distinguishing what's code vs data, what's a lexical variable name, etc
18:17:40
phoe
http://portability.cl/ lists ABCL, ACL, CCL, Clasp, CLISP, ECL, LW, Mezzano, MOCL, and SBCL under t-g-s
20:08:14
pillton
I have released a new system called data-flow (https://github.com/markcox80/data-flow). It is intended for applications which are composed of small independent components/units which interact with each other via ports or events.
20:12:37
White_Flame
pillton: interesting. We have a pipeline scheme, which is pretty verbose. This might do something similar
20:13:28
White_Flame
and of course, every library has its own threadpooling system. It'd be nice for there to be a central threadpool for everything to compose into
20:16:32
pillton
The system provides a scheduler which executes tasks if their resource requirements are satisfied. This should be fine to use with other systems.
20:18:26
White_Flame
I mean, the entire point of a threadpool is to better gracefully handle the case when there's too much in flight
20:20:11
pillton
You could use the sequential scheduler for the application and use the threadpool of the other systems for the individual computations.
20:21:11
White_Flame
well, that means manual allocation of resources between your libraries & other threadpool domains
20:22:09
White_Flame
(similarly, if all p2p bandwidth controls were centralized into a single system-wide config, as opposed to per application; that's a similar thing that's found in various domains)
20:45:09
_death
pillton: looks interesting.. usually I'd use zmq for that kind of thing, or mailboxes or just queues.. or coroutines and such if single-threaded.. data-flow seems framework-y and lets the user specify a scheduler so I'm wondering what are the use cases..
20:45:20
phantomics
Interesting, I've got some projects coming up that will require dataflow, I'll give this a try
21:01:15
pillton
_death: The factors which "tipped me over the edge" was a project at work and Paul Khuong's article titled "The unscalable, deadlock-prone, thread pool".
21:05:16
White_Flame
yeah, re the article, anything that can block should never be in a fixed-size threadpool
21:06:05
pillton
_death: I hate writing multithreaded software for the most part. What I wanted was something which executed loosely connected computations in parallel without me having to do anything i.e. locally sequential, globally parallel.
21:06:26
aeth
White_Flame: Speaking as a CL game engine author, you're simply not going to get a thread pool that satisfies every use case. You think that having one central thread pool means that libraries can interoperate with each other so more can use thread pools safely, but not really. I'll still have to avoid everything that uses a thread pool.