Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
juki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
juki
9y ago
A lot of people don't seem to be aware that the Stack Exchange network consists of lots of different sites. StackOverflow is just the biggest one, but there are sites for all sorts of discussion: https://stackexchange.com&#x
122.
▲
by
juki
9y ago
I think you misread that. They said "comparable to" (equally sane), not "compared to".
123.
▲
by
juki
9y ago
Also when you just want to run a single command, `M-&` (`async-shell-command`) is always handy. Or in Dired mode `&` for operating on files. At least for me those two work for majority of shell usage.
124.
▲
by
juki
9y ago
In that situation you could simply represent `null` as a keyword :NULL, `false` as NIL and `[]` as a vector (or some other non-list datastructure).
125.
▲
by
juki
9y ago
Most of the time there just isn't any need to make a difference between the three. There are basically just two common situations where you need to be able to tell the difference: 1. Telling apart optional arguments to a function that
126.
▲
by
juki
9y ago
> ¤ is generic, but not on any keyboard layout I know of. Finnish (/ Swedish) keyboards have ¤ on `<Shift> 4` ($ is `<Alt Gr> 4`).
127.
▲
by
juki
9y ago
> LISP/Scheme, where block comments were never a thing (I think.) Lisp does have block comments, #| This is a block comment |# You can also use feature expressions to effectively comment out code #+(or) (defun foo
128.
▲
by
juki
9y ago
> There are no words for this slush-like substance that falls from the sky, sometimes as small clumps but other times in clumps large enough that you can hear them hit the ground. That sounds like what we call "räntä" in Finlan
129.
▲
by
juki
9y ago
`#+...` is called "affiliated keyword" in the spec[1]. Those are distinct from comments, which are required to have a whitespace character after the hash sign[2]. [1]: http://orgmode.org/worg/dev/org-synt
130.
▲
by
juki
9y ago
I assume whoever made the decision figured that minus-sign is more commonly used for other purposes in text (although usually one should be using an en/em dash (which would be `--`/`---` in Org-mode) instead), so it would be harde
131.
▲
by
juki
9y ago
No, it wouldn't. The end plus-sign must be at the end of the word.
132.
▲
by
juki
9y ago
> Would put a strikethrough all the advantages above because they use the + symbol. No, it wouldn't. `+` is a valid list bullet in Org-mode. For strikethrough, the plus-signs must be attached to the start and end of the words (`+an
133.
▲
by
juki
9y ago
`C-c C-l` is also useful if you're linking to files (org or other). You can use `M-x org-store-link` in the link destination, and a subsequent `C-c C-l` will let you add that link easily.
134.
▲
by
juki
9y ago
You can use `C-c '` to edit the block in a new buffer without colons or indentation at the start.
135.
▲
by
juki
9y ago
SLIME does let you redefine functions and restart a stack frame (assuming the Lisp implementation supports that). You can even do it without using Emacs/SLIME, although that's not very convenient of course. A silly example with SB
136.
▲
by
juki
9y ago
You can use CL for #!-scripts too. SBCL has a `--script` option for running scripts. You'll probably want to create a core with whatever libraries you need for scrips, so that the start-up time will be fast. The core will be big, but i
137.
▲
by
juki
9y ago
Common Lisp does allow one to declare types in order to have the compiler optimize the code. SBCL[0] in particular is known to be pretty good at that. Macsyma also lives on in Common Lisp as Maxima[1]. [0]: http://sbcl.org/
138.
▲
by
juki
9y ago
Of course one should remember that Finland lost WW2 "better" than most countries won it. In fact, many Finns will say that it was a victory. While the war was brutal, Finland is one of the few countries where the casualities were
139.
▲
by
juki
9y ago
Common lisp has this universal setter-macro, SETF, which can be used to set values to all sorts of places . In this case you would use (setf (vref chip x y) new-value) to call the function (just like with AREF above). Using SETF h
140.
▲
by
juki
9y ago
There is also LASS[1] for Common Lisp. You use it either as a library for generating CSS, or as a standalone preprocessor. [1]: https://github.com/Shinmera/LASS
141.
▲
by
juki
9y ago
Lisp doesn't really have separate release/debug modes[1]. When you want to distribute a program as a binary, you dump the image and set a custom top-level function to use instead of the default REPL. The program will still contain
142.
▲
by
juki
9y ago
> are you sure you're not yourself requiring me to adopt to your communication modalities? They are. That's the whole point. If someone comes to try and convince you of their point, you can either listen and engage in a discuss
143.
▲
by
juki
9y ago
Do notice that the article doesn't claim they found any evidence of active development or use WMDs, which is what the USA claimed as a justification for the invasion. All they found were abandoned chemical weapons from the 80s. Everyon
144.
▲
Nokia and Apple end their patent fight and become health allies
(engadget.com)
2 points
by
juki
9y ago
|
0 comments
145.
▲
by
juki
9y ago
I assume you're thinking about Schemes `(let loop (...) ...)`, but that doesn't exist in Common Lisp. CL:LOOP is a looping macro with its own small DSL. (loop :for i :below 5 :when (evenp i) :collect i) ;=>
146.
▲
by
juki
10y ago
I use Emacs / Org Mode for bookmarks. I use a few different browser profiles, and usually always want to open a bookmark in a specific profile. Having all bookmarks in one place is much easier than figuring out which browser I need and
147.
▲
by
juki
10y ago
SBCL actually does have an interpreter, but doesn't use it by default. You can set sb-ext:*evaluator-mode* to :INTERPRET to enable it. http://www.sbcl.org/manual/#Interpreter
148.
▲
by
juki
10y ago
Typically yes. You should be able to run the test suite through ASDF. For example CL-USER> (ql:quickload :trivia) ... loads ... CL-USER> (asdf:test-system :trivia) ... test output ... But unfortunately not all l
149.
▲
by
juki
10y ago
Common Lisp is a very stable language. The standard hasn't changed in twenty years, so (unlike many other languages) old code is still perfectly good. Libraries that haven't been updated in a decade still work just as well as they
150.
▲
by
juki
10y ago
The Emacs equivalent would be M-x replace-regexp word1\(.*\)word2$ RET word3\1word4 RET Assuming you have `replace-regexp` bound to a key, it's practically the same. Works on the whole buffer (by default), or the region (if se
More ›