libera/#commonlisp - IRC Chatlog
Search
8:52:29
jackdaniel
nytpu: you can use presentation generic functions and dispatch on the presentation type
11:22:43
uics
Are languages like rust zig nim or haxe good only for young and inexperienced programmers
11:35:16
scymtym
nytpu: i am (at a snail's pace) working on a trait-like system. an old version is at https://github.com/scymtym/traits
11:35:40
hayley
There are ways to dig at languages that don't involve calling people young or inexperienced.
12:43:13
beach
uics: As I often say, people are willing to spend a huge amount of effort to avoid learning Common Lisp. Getting excited about the latest new language is a manifestation of this phenomenon.
12:51:58
uics
Maybe they are afraid that after learning common lisp there will be nothing left, only death.
12:54:20
beach
I have tried to figure out what they are afraid of, by interviewing students I had in the past, but their answers are always puzzling.
12:56:35
jackdaniel
could it be that you were slightly biased (in favor of your favorite language) when you were interpreting the answers?
13:10:11
hayley
When in line at university I tie a paren to a rope, rope to a stick, and use it to scare off the people in front of me in the line.
15:37:28
jcowan
mfiano: I have not noticed that my cat is specially drawn to me when I am doing Lisp as opposed to Python, so I think this "neighborhood cats" theory is probably wrong
15:47:24
pjb
or, we could invent a programming language syntax where any balanced parenthesis would be a syntax error.
15:51:38
mfiano
I dunno, haskell goes a little out of its way here to avoid looking like a lisp with the $ precedence operator
15:53:32
mfiano
I'm sure it does. I was just joking at the seemingly only existence for this infix precedence operator is to avoid parens and make it confusing to even mathematicians to look at.
16:03:27
mfiano
Does anyone know if there was a lot of tension between the haskell and CL parties during the standardization period, when haskell showed up on the map? I remember about 20 years ago I was banned from some haskell channel for asking the question about this operator trying not to look like that other research language being standardized?
16:22:26
jcowan
mfiano: I'd say banning is over the top, but I am careful about what I say on #haskell on the rare occasions I join it, as I don't especially want to attract the attention of a meany. That said, the person to ask is probably a standardizer and it would help if you are having a drink/coffee with them rather than ask an embarrassing question in a public place.
16:22:59
jcowan
(This does not mean that I am opposed to OT or that I refuse to answer embarrassing questions about R7RS standardization.)
16:34:56
jcowan
I kept myself off freenode#lisp for a long time because of the attacks of a similar meany who I do not choose to name (but an important person in the CL community).
16:44:12
mfiano
I honestly have no idea what we are talking about, unless we no longer have a surplus of six streams.
19:15:00
gendl__
Hi, is there a way from inside a CL to detect whether swank is running and if so, on what port it's listening
19:23:17
semarie
gendl__: swank::*servers* might be a way. => "A list ((server-socket port thread) ...) describing the listening sockets. Used to close sockets on server shutdown or restart."
19:58:05
Josh_2
yitzi: with shasht how can I dynamically append keys to a json object? I have a hash table and I want to serialize that as part of an object, not as separate object
19:59:46
Josh_2
I have (shasht:with-json-object stream (shasht:print-json-key-value ...) ;;my hash (maphash (lambda (key val) (shasht:print-json-key-value ..))) .. next hash ..) but I get no output from the hash tables
20:01:42
yitzi
Do you have some code somewhere... or a paste I can look at? I think I understand what you mean...just want to be sure.
20:09:58
yitzi
If you are doing this a lot you could write a general print method that automatically does this for hash table slots.
20:11:17
yitzi
If you look in write.lisp there is a print-json-mop function that you could tweak. Just an idea.
20:11:52
Josh_2
There is a lot of variable information for that class so I decided I'd store it as JSON in postgres rather than tweak my db everytime I come up with a new key
20:14:03
Josh_2
Each slot is a column and the hash tables are jsonb, but when the end user receives a serialized version of the class I wanted the key/vals from those 3 hash tables appended rather than as slot name -> object pairs