freenode/#lisp - IRC Chatlog
Search
5:25:47
aeth
Interesting, people are doing JVM->WASM and WASM->JVM already. https://news.ycombinator.com/item?id=16075933
5:28:09
aeth
That's going to happen for sure. ABCL might work with JVM -> WASM and Clasp might work with LLVM -> WASM without much extra effort.
5:33:10
jmercouris
aeth: you'll still probably want some layer in between to work with the dom and stuff like that though, you'll need to extend the language in some meaningful way
5:45:01
rme
I have worked with a client who uses CL to model x86 cpus. But not in the sense of "run Windows on this Lisp-emulated x86".
5:46:24
dmiles
yeah actually as i think harder (that is what i meant "run Windows on this Lisp-emulated x86") it would be an entire system like VM i would be thinking of
5:47:55
dmiles
the benefits would be abstractions available on the level of the machine instance i suppose
6:53:52
EvilTofu
Hello again! In (defmethod add-list-of-symbols-to-object ((alist cons))) where I add a list of symbols to something, is there a way to specify that the list has to be symbols only or should the code not care?
6:56:19
pillton
No. Methods can only dispatch on classes and there is no class representing a list of symbols.
6:59:57
EvilTofu
So I can actually provide two methods where one is a list of symbols and one where the parameter is a symbol.
7:14:22
hibikelel
Wondering if there's somebody up this late who can help me with a bit of a quandry
7:15:16
hibikelel
I'm a novice programmer, and even that's stretching it, I've got a very shallow knowledge of a wide number of languages but couldn't code my way out of a paper bag when you get down to it
7:16:01
hibikelel
Out of all the languages I've messed around with Lisp seems to be the only language/family I can see myself doing any long-term work in, at least for fun
7:17:22
hibikelel
Dedided I'd work on a much larger project, really test my skills, I've never done anything with 3d graphics before so I figured I'd tinker around, trouble is there doesn't seem to be any libraries written, in racket anyway, for any openGL implementation after 1.5 which is pretty out of date at this point
7:18:53
hibikelel
Should I just switch to another language or might it be worth writing some wrapper functions for a C graphics lib
7:19:11
|3b|
#scheme or #racket might know more about scheme/racket bindings, this channel is mostly about common lisp, for which there is cl-opengl
7:19:46
JuanDaugherty
RECOMMEND: reevaluate your judgement on the graphics library, do more research and go with best you can find in time you have
7:20:00
hibikelel
You know I've been bouncing between implementations for a while and I'm not against using CL, I guess I'll give that a shot
7:20:35
JuanDaugherty
and obviously continue with lisp, but there is a cl vs scheme decision to make
7:20:41
hibikelel
Worked through most of SICP, read a bunch of Scheme books, Little Schemer, then Realm of Racket, about halfway through HTDP
7:21:22
hibikelel
Never done any 'serious' work however, and while it's a true statement that I have no idea what the fcuk I'm doing I feel I know enough to figure it out
7:22:15
hibikelel
Let's see... I must have written my first real python program in 2014 but I didn't keep up with it, I did about jack shit until I wanna say three months ago
7:23:00
EvilTofu
If I want a function that adds a connection from one node to another (add-connection node1 node2) but I want the option of a bidirectional connection and want a (add-connection node1 node2 :bidirectional), how should this be implemented? And is this a valid lisp way of doing this?
7:23:38
hibikelel
Built up the vocabulary, finally beat it into my skull what exactly constitutes a class (no I didn't, every language changes it around) and I have trouble staying on one language when I get bored, I've got knowledge as broad as a gorge, deep as a puddle
7:24:03
hibikelel
I've probably made it through the first half of close to a dozen different books on nearly as many languages, and god knows how many tutorials
7:24:05
JuanDaugherty
in computer programming, unlike comparable professions, there's a forced dilletantism that comes from the impact of its history and role in the capital system
7:24:34
|3b|
EvilTofu: usually you would have (add-connection node1 node2 :bidirectional t), and use &key
7:25:22
hibikelel
I don't intend to become some master-programmer who reinvents everything about modern society, nice as that would be, when you get down to it I just want to hack around with pretty pictures
7:26:27
hibikelel
Have a neat idea for a simple 3rd person shooter, don't even intend to sell it, just show off to some friends, I'd be surprised if whatever I come up with would be considered passable on the ps1
7:27:23
JuanDaugherty
hibikelel, it is probably inappropriate for you to try to do a lisp app for ps1
7:28:12
hibikelel
Not what I meant, I was trying to say that the level of quality I'm shooting for here wouldn't have made a passable game on that platform, not that I'm actually intending to write a game for the ps1
7:28:44
hibikelel
That said interestingly enough Crash Bandicoot was written in a proprietary lisp dialect called GOOL
7:28:49
|3b|
you could also pass :bidirectional nil if you wanted to be explicit at the call site (or if you wanted to pass it on from another variable or similar)
7:29:09
JuanDaugherty
i still am unable to determine the nature of the specific paedagogical emergency
7:29:38
|3b|
there is also the option when writing the defun to determine if :bidirectional was specified at all when you want more complicated defaulting behavior, but usually you don't need that
7:30:24
hibikelel
I was just having trouble finding a 3d graphics library for racket, folks in here reccomended cl
7:32:02
|3b|
hibikelel: note that 'here' is a bit biased, other channels might have other biases and thus other suggestions :)
7:32:02
hibikelel
folks in this channel reccomended cl, I connected to #lisp thinking it was a general lisp chanel, unaware there was chanels for specifict dialects
7:34:52
JuanDaugherty
fwiw, i move freely across lang cultures but for you that's probably inappropriate. I wrote my first program in 1974, went to college for it, had a long career, etc
7:37:42
hibikelel
awesome, as much as I'd like to have a career in programming one day I'm not sure that I'm cut out for it, I'd prefer to keep it as a neat hobby rather than anything I do too seriously. No offense to those who do so for a living but I like the unconstrained nature of a blank editor, allowing me to work on/tinker with whatever I feel like, having to maintain someone else's software as product seems like
7:39:00
JuanDaugherty
that is the common reaction to doing it under the capital system, the major alternative is academic/scientific computing
7:39:35
JuanDaugherty
and the dilletantism you seem to be headed for was once common, still is a thing i think
7:41:03
JuanDaugherty
and extremely common pattern was for people to get sucked in from other disciplines, especially technical ones and then burn out on the noxious character of the industry
7:42:37
hibikelel
I've always loved computing, but I'm more of a technician than a programmer, ressurected the laptop I'm typing this on from a chinese electronics-scrapper, had almost no parts, not even a display, ordered all of that and assembled the machine, turns out the backlight-fuse was blown, so I did my first soldering job on this thing, pretty proud of it in all honesty
7:44:39
hibikelel
I mean what can be said for the commercialization of the technical sector, the advent of the microprocessor didn't exactly change everything about everything overnight, but it certainly made a massive impact once consumer-grade computers were in the hands of the masses, from there the internet supercharged things
7:47:06
JuanDaugherty
'the commercialization of the technical sector' may make sense in china or russia, but the technical sector originated in and never left the technical sector
7:49:38
hibikelel
Perhaps that was a poor turn of phrase, I was attempting to articulate the transition of general computing from the past-time of academics and amateur programmers through the mid-sixties into the late-seventies, into what we wolud consider the modern information economy. Time was unless you were manufacturing hardware there was almost no money to be made in computing outside of supporting a corporate
7:51:41
JuanDaugherty
even mathematics itself arose in the practical activities of accounting, surveying, etc
7:56:53
JuanDaugherty
probably the height of what you are talking about was in the late 70s and early 80s, a fairly brief time, less than a decade
7:59:23
JuanDaugherty
anyway, as far as your original paedogogical emergency, i'd give portacle a try, use the libs it provides
9:11:50
hajovonta
also, it's a lot of money just to travel and stay, and in the past few years it was nearly impossible to embark on the journey
11:31:09
namra
i'm pretty new to lisp and trying to read from a stream (that is returned instead of a string) as the response body of a get request using dexador
11:33:16
namra
thought that actually doesn't read anything from the stream, and i just can't figure out why
11:46:48
namra
i don't know if some of the dexador code read from the stream prior, which actually doesn't seem reasonable because it wouldn't make sense to return the stream than. though any code i wrote doesn't read from it prior to that.
11:52:33
FareTower
I know of babel. If you M-. on BABEL:UNICODE-CHAR it should take you to the definition.
11:58:28
namra
(make-array 1024 :fill-pointer 0 :adjustable t :element-type (stream-element-type response))
11:59:13
FareTower
maybe instead you should save the value given by read-sequence, and use it to set fill-pointer, or something
12:00:35
namra
the hyperspec states that read-sequence returns the position into the sequence (basically how many chars in this case have been read), but it always returns 0
12:06:58
FareTower
and yes, if alexandria doesn't have a read-sequence-extend function, maybe you can contribute it. Or to another library
12:09:26
FareTower
yes, it does, but this gentleman is reading from a stream. Maybe he wants slurp-stream-string.
12:09:33
shrdlu68
There doesn't seem to be a "maxcol" print arg to the ~D format directive. How does one limit the maximum width?
12:24:08
namra
shrdlu68: maybe you can achieve that with a conditional format directive, where the first argument checks if the number is to large
17:02:25
jmercouris
Xach: Is there a way to fetch the latest upstream version of a project available in quicklisp?
17:02:44
Xach
jmercouris: not directly, but all upstream sources are tracked in the quicklisp-projects github repo
17:09:19
jmercouris
Xach: I remember you told me some time ago, but let's say you have something installed via quicklisp, and something in your local-projects dir, how does ql decide which to load?