Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kagevf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
241.
▲
by
kagevf
4y ago
I agree, it’s confusing. Plus, it looked like negative and positive advice was mixed, when referencing a talk.
242.
▲
by
kagevf
4y ago
> You're probably bulking at the 3 repeated loops “balking”?
243.
▲
by
kagevf
4y ago
> statically typed Not strongly and dynamically typed?
244.
▲
by
kagevf
4y ago
A video on carp just came out today: https://www.youtube.com/watch?v=GM9s_d4AkhI&t=1057s
245.
▲
by
kagevf
4y ago
> I think the last one can be used in CL, but not 100% sure. You can create a symbol that way: (let ((|my symbol| 123)) |my symbol|) => 123
246.
▲
by
kagevf
4y ago
emacs org mode will work in the terminal. For example, in an org doc you can have something like this: * Python #+BEGIN_SRC python :results output def myTest(a): return a + 2 print (myTest(8)) #+END_SRC #+RESULTS: :
247.
▲
by
kagevf
4y ago
Common Lisp macro expansion happens at compile time, so they wouldn't affect runtime performance.
248.
▲
by
kagevf
4y ago
Thank you - that worked!! I haven't done step 4 yet, though, but will keep it in mind if I run into any weird issues.
249.
▲
by
kagevf
4y ago
My understanding is that the authors of SICP themselves wanted to update the curriculum - not just a language change, but to cover something at a higher level of abstraction. See: https://youtu.be/OgRFOjVzvm0
250.
▲
by
kagevf
4y ago
I think that's what I ran into ... but not at first, only later, which was weird ...
251.
▲
by
kagevf
4y ago
Not out of the box. When I try it I get this: $ ls -al | clip Command 'clip' not found, but can be installed with: sudo apt install geomview "geomview" has something to do with 3D images. I tried this with U
252.
▲
by
kagevf
4y ago
Thank you, I'll give it a shot ... I'd like to try this before using WSL for the situation I have in mind.
253.
▲
by
kagevf
4y ago
Actually, when I tried to use git on Win10 it worked at first but then at some point stopped functioning. Now that I'm on Win11, I definitely need to revisit that - thanks for the reminder! The only downside, though, is the clipboard w
254.
▲
by
kagevf
4y ago
> DOS/V Anyone else remember DOS/V Magazine? :) I recall that one the zip compression utilities could run on both PC-98 and on IBM compatibles.
255.
▲
by
kagevf
4y ago
It's useful running vim in git bash on Windows. I'll switch, though, if I ever figure out how to install tmux in that environment then I'll switch.
256.
▲
by
kagevf
4y ago
ah, got it! and was able to reproduce. This will be something to keep in mind whenever trying out different REPL offerings outside of emacs / slime ... thank you for the tip!
257.
▲
by
kagevf
4y ago
> We get a break repl: How? I ran the same function, brought up the debugger, if I try to type something emacs says the buffer is read-only. Was I supposed to push e first?
258.
▲
by
kagevf
4y ago
> I'd love to find a self-hosted version of one of these Emacs org mode has entered the chat … In all seriousness, and depending on your use case, tables and executable code blocks come in handy a lot.
259.
▲
by
kagevf
4y ago
> the function lookup done for 'LIST isn't in the lexical scope; it's done inside the mapcar function in another scope, or maybe in a lower-level function like funcall or apply Ah, OK, I think that's the key part I w
260.
▲
by
kagevf
4y ago
> (mapcar 'list) Thank you for sharing that, I didn't know that was possible. I also tried just doing 'list at the repl, and sure enough it gets recognized as a function. I thought I could break it by doing this: (let ((li
261.
▲
by
kagevf
4y ago
Thank you for the reply! And I see that even in my original attempt, I could have used (setf (cdr)) instead of (rplacd)...
262.
▲
by
kagevf
4y ago
Would the code to maintain a pointer on the last element look something like this? (let* ((list (list 1 2 3 4)) (last (last list))) (rplacd last (list 5 6)) (setf last (last last)) (format t "list: ~a~%last: ~a~%"
263.
▲
by
kagevf
4y ago
Counter point - as I've gotten older, I find dark mode much easier on the eyes. But it depends on the time of day, and how much lighting is actually available.
264.
▲
by
kagevf
4y ago
I like using M-( insert-parentheses in vanilla emacs when composing a sexp.
265.
▲
by
kagevf
4y ago
“It works in Firefox nightly” has got to be real!
266.
▲
by
kagevf
4y ago
Maybe it's g for "grabbag" ...
267.
▲
by
kagevf
4y ago
More like an introduction to computer science concepts.
268.
▲
by
kagevf
4y ago
That's good news ... I thought they had added it but were forced to remove it. I think this will make Hy a bit easier to use, especially for those who are more comfortable with CL or Scheme than Python :)
269.
▲
by
kagevf
4y ago
This wikipedia article lists some: https://ja.wikipedia.org/wiki/%E6%97%A5%E6%9C%AC%E8%AA%9E%E3...
270.
▲
by
kagevf
4y ago
I second the suggestion to start off with org mode. You get a low stakes note taking utility to use while getting comfortable with emacs. From there spread out to learn other features at your own pace.
More ›