freenode/#lisp - IRC Chatlog
Search
16:30:47
aeth
I think this would work for printing floats in a column in general, but the decimal point won't line up if mixing scientific notation and regular. It also means 6-8 digits if in the range and 5 out of the range. (if (< -1000 number 1000) (format stream "~10,5F " number) (format stream "~10,4E " number))
16:36:26
aeth
Well technically it looks like http://www.lispworks.com/documentation/HyperSpec/Body/22_ccc.htm could fit with "~10,3G" or something (i.e. once at 10^3, use exponential) but then it looks like I don't have the ~F formatting options
16:52:18
aeth
I didn't write an nth/elt equivalent, though, so I didn't have to deal with that problem
16:54:39
shka
so i really need to have consistent behavior on all interfaces or otherwise i will spend eternity debugging
18:21:10
buoyantair_
Just wanted to know if Im ever going to use it again or not like I dont want to do that!
18:22:24
ZigPaw
Even if you might not use it in commercial settings it still will enchance your view on programming.
18:23:06
beach
buoyantair_: Are you looking for an answer in the form of a computer type, or an operating system?
18:24:05
aeth
buoyantair_: Some common uses for CL as mentioned on IRC are AI (the traditional place, but not as common these days), web programming, and games. It's also used in at least one tiling window manager (stumpwm).
18:24:47
pjb
buoyantair_: well, if you want to be hired in my startup, knowing CL will help put your resume on top of the stack…
18:24:55
beach
buoyantair_: Oh, Common Lisp is a general-purpose programming language. People here use it for various things, like writing compilers, editors, games, web sites, symbolic math programs, graphic user interfaces. You name it.
18:24:58
aeth
buoyantair_: One of the primary advantages of CL over the languages it most directly competes with (e.g. Python) is the performance of its most popular implementations (SBCL, CCL), which ahead-of-time compile to native code.
18:25:46
ZigPaw
in my startup most of the devs I hired had to implement a basic scheme interpreter/transpiler.
18:25:57
pjb
buoyantair_: but even if you are never hired to do CL programming, you can still learn it and continue using it as a secret weapon.
18:27:31
pjb
By putting a sexp-syntax on classic languages, you can then use CL to generate programs in those languages.
18:27:44
pjb
So instead of writing the code yourself, you can write programs (macros) to generate the code for you.
19:52:55
Bike
i think set-syntax-from-char, where the from-char is an example of what you want it to be instead
21:46:52
pjb
thodg: (set-macro-character #\# nil t *readtable*) (set-syntax-from-char #\# #\a *readtable*)