freenode/#lisp - IRC Chatlog
Search
0:56:43
loke[m]
moon-child I was almost impressed with by his consistency. How can you spend years doing that stuff over and over again.
1:01:44
Bike
the few times i've looked at c.l.c this guy wj made a ton of posts about how CL sucked.
1:02:45
moon-child
the main ~spammers I remember are rick c hodgin (religious propaganda) and prof. fir (all-around fun times)
1:03:26
no-defun-allowed
raisins CL sucks 1. Only common why would you not use items with higher rarity 2. No abelian groups for pure IO 3. Too fast, can't overcharge people for rewriting in C
1:03:41
semz
wait a second, what is c.l.c? i assumed comp.lang.c, but anti-CL posts sound out of place
1:05:06
no-defun-allowed
Bike: no, else IO would be commutative and that wouldn't help with "sequencing" IO
1:05:35
no-defun-allowed
I think that's how it is, I dunno and only came up with Abelian IO for the joke.
1:21:27
dieggsy
Bike: The former, I think. I want to be able to type "the integer 1e6" without 1000000 or (floor 1e6)
1:22:30
Bike
i see. there's no built in way. if you wanted you could probably write a reader macro fairly simply.
1:27:18
edgar-rft
expt is what I am using for huge bignums, you're of course free to use something different
1:31:12
Bike
(defun sharp-e (stream sub num) (declare (ignore sub)) (* num (expt 10 (read stream t nil t))))
1:32:48
edgar-rft
using 1e<n> is rather seldom, you usually need numbers like 127364538463e16278364536372 and I doubt that this can be shortened by a read macro
7:16:18
splittist
If we're suggesting alternative numeric literal syntax, python allowing #\_ as a separator seems nice. 1_000_000 or #b1001_1001_1111 or #xDE_AD_BE_EF (:
7:42:01
fiddlerwoaroof
splittist: although, I sort of like the model used by the "numderline" font patching tool: make display conventions for numeric literals a font feature rather than actual source characters
7:43:35
moon-child
(nor ligatures.) From the rendering side, I want my texteditor to be a relatively dumb grid of characters. Plus some colour, maybe
7:49:53
fiddlerwoaroof
I think formatting numbers readably is more like syntax highlighting than ligatures, though
7:50:52
fiddlerwoaroof
The issue with a python-style 1_000_000 is, now I have all sorts of issues when I want to copy the numbers from my source code somewhere else
7:51:18
fiddlerwoaroof
And similar issues if *PRINT-PRETTY* decides to include the grouping character
7:51:59
fiddlerwoaroof
I sort of wonder if the issue could be solved with a font-lock rule for which characters to color slightly differently
7:55:43
moon-child
colouration could work, but I think I prefer inline _. Copy-pasting--is that really such a concern? I almost never do that. In particular, I don't think it's particularly reasonable to expect forms from one language to be compatible with forms from another, as a general rule
8:03:52
Nilby
There's this 10̦000̦00 or this 10̲000̲00 but I think they're more trouble than they're worth.
8:05:45
fiddlerwoaroof
moon-child: copy-pasting isn't a huge concern, but I find it irritating when I have to reformat basic data types between langauges
8:06:39
fiddlerwoaroof
Anyways: Excel and other spreadsheet tools have all sorts of nice number formatting options
8:06:58
fiddlerwoaroof
It'd be great for me to be able to set such display options on a variable-by-variable basis :)
8:08:02
White_Flame
hmm, but when copying a cell (at least in libreoffice), you get the presentation form, not the raw form
8:10:22
fiddlerwoaroof
And, I don't think Excel has that limitation: at least, you can choose whether to paste the display formatting or the values at paste time
8:12:13
White_Flame
yep. The general problem IMO is the Unix/C model of naked char buffers for everything
8:13:47
fiddlerwoaroof
In fact, macOS's biggest technical advantage is that it's _not_ based on the Unix/C model of text everywhere for the user-facing parts
8:14:16
fiddlerwoaroof
It's based on the Objective-C runtime, which is basically a limited Smalltalk
8:20:13
splittist
The most important syntax is the one I'm presenting to myself in my source code: did I just type one hundred million or a billion? Let me move my cursor over the number as I count... 100_000_000 makes it obvious to my most important reader - me (:
8:23:33
jdz
Usually by moving cursor to position 3 from the right, and then selecting 3 next digits left.
8:25:56
jdz
#r should be extended to accept #\" as the base, so then: #r"one hundred million billion".
8:26:28
fiddlerwoaroof
this is sort of interesting, in Emacs: (gui-get-selection 'CLIPBOARD (intern "text/html"))
8:26:58
fiddlerwoaroof
(gui-backend-get-selection 'CLIPBOARD 'TARGETS) shows all the possible target formats
8:29:57
Nilby
The natural way of representing numbers is of course recursive, so any linearization into bits is somewhat fake.
9:04:31
contrapunctus
Shinmera: it seems you changed the licenses for some of your projects from Artistic to zlib, but the accompanying web pages still name the former as the license. I figured you might want to update them, to avoid confusion.
9:13:50
contrapunctus
Shinmera: is your website not in a repo I can make a PR for? 🤔 I couldn't find a repo. Or, wait, are those generated docs?
9:15:01
Shinmera
each repo has a docs/ folder. That's where the sources are for those. And yes they're generated, but once per repo, so it's a pain in the ass.
10:51:28
Demosthenex
ok, i'm trying to work with a script i wrote that import's a library using it's pathname, but that seems to fail in sly/slime
10:56:33
Nilby
You could use #+(or swank slynk) . I'm not sure what you mean by import though. It's probably best to make it work without special code.
10:59:35
Demosthenex
Nilby: i'm trying to make it so that i can eval my buffer to load it into repl, and there are assumptions made about the path... so i'd like to wrap that in some code wwhich detects that i'm running in swank/sly/slime so i can address the mising data
11:07:40
Nilby
Ah. There's lots of ways to address the issue. #+ conditionals are the simplest, but maybe most brittle. You could also use logical-pathname-translations, to make a path prefix, then say (load "my-stuff:foo.lisp") But, loading with asdf or quicklisp is probably the most usual.
11:18:02
Demosthenex
maybe i need to wrap my final code in a main function, and then only call that when i use --script
11:40:41
Demosthenex
is there a way i can say "call (main) only if called from sbcl --script, ie: not sly?"
11:45:26
Nilby
But perhaps it's best to put whatever you want to do only interactively in separate function.