Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gilch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
gilch
2y ago
C macros are just a text preprocessor. You could run the C preprocessor on a text file and have the result be Python code. Comments might be a little tricky, but it's doable. Or you can run a text file through a general-purpose one lik
2.
▲
by
gilch
2y ago
> I loved Lisp, but none of the lisps have anything like Python's ecology. Try Hissp ( https://github.com/gilch ). Lisp programming and Python's ecosystem.
3.
▲
by
gilch
3y ago
No commits for a year? https://lolg.it/amber/amber Is it dead?
4.
▲
by
gilch
3y ago
Python is great for API discovery. `dir()` and `help()` are builtins. Use the REPL.
5.
▲
by
gilch
3y ago
That is the right answer. While some comparisons have been written already, they're somewhat out of date. Hissp could use a new writeup. Let me know if I can answer any questions about Hissp, and when your blog post is ready :) You can
6.
▲
by
gilch
3y ago
As the Hissp author/maintainer, I'd be interested in hearing about your take on Hissp's practicality (or lack thereof) in more detail.
7.
▲
by
gilch
3y ago
Not accurate as worded. Python caches module imports in `sys.modules`, so all imports get the same one. A `reload()` will reuse the same dict object that was being used as the module's namespace, so everything with a reference to the m
8.
▲
by
gilch
3y ago
What? Yes you can. I do it all the time. import code; code.interact(local=vars(foo)) where `foo` is the module object you want to set as current. This launches a subREPL in that module's namespace. (EOF kills the subREPL and r
9.
▲
by
gilch
3y ago
You might be interested in Hissp, a Lisp with access to the breadth of libraries available to Python. https://github.com/gilch/hissp
10.
▲
by
gilch
3y ago
> I would certainly take Python's huge ecosystem over Lisp's metaprogramming. You can have both with Hissp. https://github.com/gilch/hissp
11.
▲
by
gilch
3y ago
A class of old-school AIs: https://en.wikipedia.org/wiki/Expert_system I made a small one that classified dinosaurs in school.
12.
▲
by
gilch
3y ago
> wanted to expand beyond python. [...] Have been trying to learn about Lisp lately and feel like I've come to a similar dead end. If you're already comfortable with Python, check out Hissp's tutorials (in the docs). It&#x
13.
▲
by
gilch
3y ago
I didn't really like "Learn You a Haskell". "Haskell Programming from First Principles" or "Haskell from the Very Beginning" might be more accessible.
14.
▲
by
gilch
3y ago
> I'm interested anything else strange from the lisp world if people have references. Hissp just released version 0.4.0. It compiles Python tuples to Python expressions and has multiple readers with different characteristics, not al
15.
▲
by
gilch
3y ago
Clojure has had pretty remarkable stability over the years. Maybe Common Lisp even more so, since it's based on a standard that hasn't been updated.
16.
▲
by
gilch
4y ago
One can learn a lot about programming by talking to ChatGPT. Sure, it has a bad habit of making stuff up, but you can run the code to see if it works.
17.
▲
by
gilch
4y ago
> And last but not least, what should I do about the fact that I have never used smartphones (iPhone/Android) and I have no interest in them, when the vast majority of my students will only have such a "computer"? Android
18.
▲
by
gilch
4y ago
It occurred to me that ChatGPT (or the like) might be able to help students find their mistaken assumptions without taking as much of your time, at least if it's in a well-known language like Python. Being able to dialogue with these n
19.
▲
by
gilch
4y ago
If I could send a message to my past self on the topic, I might have told myself to start with Common Lisp, Scheme, Python or Smalltalk (maybe Squeak), rather than the BASIC, C++, and C# that I started with. (C++ was too complicated. BASIC
20.
▲
by
gilch
4y ago
What, specifically, is lacking?
21.
▲
by
gilch
4y ago
There's also Hissp. You could start out in readerless mode (it's still Python!) and introduce Lissp afterwards as a convenience.
22.
▲
by
gilch
4y ago
You don't have to go it alone. Hissp does have documentation (which is pretty thorough) if you want to try, but there's also a community chat on Gitter/Matrix: https://gitter.im/hissp-lang/community If y
23.
▲
by
gilch
4y ago
The misleading part wasn't from me. I'm trying to correct a common misconception here. Both "multiple" and "lines" are wrong. Lambdas can't have single statements either. The body is only an expression. So
24.
▲
by
gilch
4y ago
I think language popularity in industry mostly comes down to path dependence[1]. It doesn't say as much as you seem to think. A few approaches got lucky in the rapid inflationary period of the personal computer revolution (C), and the
25.
▲
by
gilch
4y ago
And Python!
26.
▲
by
gilch
4y ago
Can't you just use an incognito tab? It'll delete all the cookies when you're done.
27.
▲
by
gilch
4y ago
This means it should be the rule of five. We can't count on everyone having full capacity all the time.
28.
▲
by
gilch
4y ago
It's the reason Excel is easier to learn than Java.
29.
▲
by
gilch
4y ago
No, it was rhetorical, because it's obviously (to an APL-family programmer), not bad! Your cultural prejudice is showing. There are good reasons APL is written the way it is, and this example is simply bringing those benefits to C by
30.
▲
by
gilch
4y ago
What? No it isn't! You didn't parse that correctly. The query params were never in the lambda to begin with. Python function calls have strict (not lazy) semantics, i.e. "applicative order", i.e. both expressions passed
More ›