freenode/#lisp - IRC Chatlog
Search
17:25:31
astronavt
does sbcl or any other implementation support unicode names? also would be curious if there is a library for "math mode" using infix notation for writing equations
17:40:58
pjb
astronavt: That said, I don't understand why you ask about unicode, since all the characters in (symbol-name '|"^"|) are in the ascii repertoire: (map 'list 'char-code (symbol-name '|"^"|)) #| --> (34 94 34) |#
18:54:32
dlowe
everything that isn't a parameter will have to be set up in your tests to avoid interfering with your other tests
18:56:01
dlowe
the easiest kind of testing is you call a function with some arguments and you compare against the return values
18:59:20
dlowe
ebrasca: I would set up an in-ram virtual disk and see if reads and writes to it behave like you would expect
19:00:16
dlowe
ebrasca: there's a difference between a mock and a fake now, where a fake is something you construct to behave like an external dependency, and a mock is a thing that a library constructs for you
19:01:16
dlowe
if you use syscalls, that may mean abstracting out the syscalls so they may be swapped out during testing
19:02:25
dlowe
ebrasca: does mezzano have the capability to mount RAM-backed storage? Because that would be the easiest, it seems to me
19:25:24
Ober
trafaret1: lexical-let is the newest generation of excellence in lisp. No other lisp has it because we're too old school
19:25:58
Harag
:dlowe ..with testing global state can also be your friend, if you design your tests to use global state you set up "scenarios" and then swap them out with out comping up with values having to change the actual tests, all your tests does is check the output then.
19:27:49
dlowe
ebrasca: (defun test-write-file () (fat32-write +test-data+) (check-to-see-if-write-happened))
19:56:16
White_Flame
gabbiel: inlining can work against interactive programming. If you redefine a function that's inlined somewhere else, it's best to restart your image and reload
19:57:28
White_Flame
you might get some compiler overflow errors if you explicitly declare a recursive function to be inline. But with tail call optimization, self-recursion can reduce down to a single jump so the point is moot
20:13:13
White_Flame
well, you could certainly develop something like that by changing the implementation
20:13:48
White_Flame
but a similar issue appears with macros as well. If you change the defmacro, that doesn't re-expand all its uses automatically, especially since macro expansions might perform side effects
20:58:47
vivit1
system-apropos lists nothing when I search for the names of packages that are right there on quickdocs, and when I try to quickload them I'm told that they're not found
21:07:51
paule32
ebrasca: the script have to find 2 fracts a/b, where the cube's result in a |N natural number
21:13:35
Oladon_work
paule32: You're essentially asking people to do your homework for you. I'm pretty sure that's not what whoever asked it of you had in mind.
21:15:40
Oladon_work
Regardless -- you're asking people to write code for you. You're much more likely to get a good answer if you show that you're actually trying to write it yourself.
21:19:52
White_Flame
paule32: also, look up the term "CAS" (computer algebra system). there should be lisp libs available
23:43:28
aeth
On the earlier topic, inlining is an interesting alternative to type declarations. an inline 2+ (defun 2+ (x) (+ 2 x)) will avoid the generic + where possible just like the built-in 1+, but without needing to define 10 versions for each of the number types you might be using
23:44:52
aeth
If you inline to remove generic sequence/number functions, then you also get smaller code, not larger.
23:50:00
ebrasca
paule32: In common lisp you use +constant+ for constant and *variable* for variable.
23:53:25
no-defun-allowed
Anything (representable as a CL number) is a fraction if you have a large enough denominator.
23:55:16
ebrasca
paule32: I recomend you this http://clqr.boundp.org/clqr-a4-consec.pdf for Quick Reference.
1:58:44
aeth
ebrasca: You can do any kind of software where the choice of language is irrelevant, and up to the developer. Mostly web server stuff, I guess.
1:59:00
White_Flame
there are certainly fewer opportunities to be employed as a common lisp software developer, but outside that it's equivalent to making money with any other programming language. Build something to sell
1:59:41
aeth
no-defun-allowed: symbolic AI isn't AI, only ML is AI these days... and if you disagree, there are plenty of IRC channels where you'll face that argument.
2:00:43
White_Flame
applied logic, vs applied statistics. Neither is "AI" in the most general sense ;)
2:02:04
paule32
(format nil "; (a / b) = is cubic = true | a := ~10D^3 / b := ~10D^3, Wert = ~10D~%"
2:03:02
no-defun-allowed
ebrasca: I would still pay for someone to teach shrldu68 alignment so they can pick up that goddamn red block.
2:03:07
ebrasca
White_Flame: I have server ( Talos II ) , and I don't know what is this "something to sell" .