Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gilch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
gilch
5y ago
Nassim Taleb’s Barbell strategy has really changed my thinking on this. In a nutshell, you put 85-90% of your portfolio in super conservative low-risk investments that at least beat inflation, 10-15% in aggressive speculation with very high
92.
▲
by
gilch
5y ago
The search term is "paper trade". Many online brokers offer this. It's good to know the mechanics of how to create and submit orders before you try it with real money. You can also find apps for that which aren't tied to
93.
▲
by
gilch
5y ago
Whatever you do, don't jump out at the bottom! You have to hold on and ride it out. However, it is prudent to reduce exposure a bit when volatility is too high. See "Kelly Criterion" for how to calculate this. Inverse volatil
94.
▲
by
gilch
5y ago
I don't know tax laws in other countries, sorry. Some of them have similar tax-sheltered retirement accounts though. The 15-30% is if you're being very aggressive (but not reckless) with leverage. You wouldn't get that much i
95.
▲
by
gilch
5y ago
There are a lot of junk resources that just want to sell you things and are a waste of time. It takes a certain level of expertise just to find competent teachers. But I'll try to briefly summarize what I wish I had known when I starte
96.
▲
by
gilch
5y ago
Hissp is a Lisp clone in Python, with a tiny escape hatch to fully utilize the Python parts. https://github.com/gilch/hissp
97.
▲
by
gilch
5y ago
If you're already familiar with Python libraries, check out Hissp ( https://github.com/gilch/hissp ), which compiles to Python expressions.
98.
▲
by
gilch
5y ago
Pretty sure this is sarcasm, as in, the lies are so transparent they're humorous, and this was on purpose. For those who didn't notice, nuclear plants have, in fact, melted down, more than once. Biosafety level 4 labs have, in fac
99.
▲
by
gilch
5y ago
Hissp: https://github.com/gilch/hissp
100.
▲
by
gilch
5y ago
Hylang also does this. Macropy too.
101.
▲
by
gilch
5y ago
Here's a Lisp in Python: https://github.com/gilch/hissp
102.
▲
by
gilch
5y ago
I'd add an array language like APL or J to that list. Idris is worth mentioning, but maybe Curry+Coq cover that space. Maybe Icon too. Concepts, Techniques, and Models of Computer Programming [1] with Mozart/Oz covers a lot of gro
103.
▲
by
gilch
5y ago
I made a quickstart for it in the style of Learn X in Y Minutes. See the docs.
104.
▲
Show HN: I made a Lisp that transpiles to Python expressions
(github.com)
2 points
by
gilch
5y ago
|
1 comments
105.
▲
by
gilch
5y ago
Red and Rebol have prefix notation and no parentheses to delimit the arguments. That means you have to know the arity of each function to understand how to build the parse tree. This is apparently not as hard as it sounds, because natural l
106.
▲
by
gilch
5y ago
How do the UI and features compare to Evernote?
107.
▲
by
gilch
5y ago
Hy's loop/recur had a serious bug last I checked: https://github.com/hylang/hy/issues/1465 But see the @loop decorator from Drython for how to do this in Python: https://github.com/g
108.
▲
by
gilch
5y ago
There even a mal in Hy! https://github.com/kanaka/mal/tree/master/impls/hy
109.
▲
by
gilch
5y ago
What about a Lissp-Hebigo pair? https://github.com/gilch/hissp#hebigo Hissp takes a different approach than Hy. Where Hy has to use shims to pretend statements are expressions, Hissp just targets the expression subset
110.
▲
by
gilch
5y ago
See JetBrains MPS: https://www.jetbrains.com/mps/ The "Projectional Editor" might be the kind of thing you're talking about. The meta language is stored as syntax trees rather than text and can be render
111.
▲
by
gilch
5y ago
See hy2py: https://docs.hylang.org/en/master/language/cli.html#hy2py
112.
▲
by
gilch
5y ago
That capability is in the standard library now: https://docs.python.org/3/library/ast.html?highlight=unparse...
113.
▲
by
gilch
5y ago
Not sure how close Hebigo gets to that idea: https://github.com/gilch/hissp#hebigo
114.
▲
by
gilch
5y ago
What else does it need to be a Lisp?
115.
▲
by
gilch
5y ago
Yes, but you have to (require) it: https://docs.hylang.org/en/master/api.html#module-hy.contrib...
116.
▲
by
gilch
5y ago
See Hebigo's Python-like approach: https://github.com/gilch/hissp#hebigo
117.
▲
by
gilch
5y ago
Hy does have a let macro now, but you have to (require) it before it works: https://docs.hylang.org/en/master/api.html#module-hy.contrib...
118.
▲
by
gilch
5y ago
And Hissp, a Lisp which compiles to Python expressions.
119.
▲
by
gilch
6y ago
No, Python's lambdas can have as many lines of code as you please. They are not limited to one line. I'm not sure where this myth comes from, but I see it a lot. Maybe some people think that "lines of code" == "stat
120.
▲
Covid 1/28: Muddling Through
(thezvi.wordpress.com)
1 points
by
gilch
6y ago
|
0 comments
More ›