Live data from Hacker News

Hy, a Lisp that compiles to Python

github.com

61–70 of 75 posts

Re: Hy, a Lisp that compiles to Python

#61
Either I have (good or bad?) luck or I've got some zeitgeist hunch or something, but first I had a convincing WIP of implementing Ruby in RPython when Topaz went out, and now while I'm working on a Lisp[0] — again in RPython — comes Hy.

Well at least Hy is markedly different, as my goal is not to compile to Python AST/bytecode, but "merely" be implemented in (R)Python (and C for LLVM) with no access to the Python runtime.

[0]: https://github.com/lloeki/wasp

Re: Hy, a Lisp that compiles to Python

#62
post #36
post #28

Earlier quoted context omitted.

Can someone explain for non-native English speakers what’s the problem with “goddamn”?

It's considered profane. Television in the United States is okay with the word 'damn', but there are people who consider the combined use with 'God' to be disrespectful to the word 'God' (and believers), stemming from the belief that many religions have that 'God' (and other synonyms) should be reserved for when a person is addressing that deity. Also, many believers consider it a faux pas to impose on the deity of t…

If I start a religion where god is named, "bleep" can I get it covered with "God" instead?

Re: Hy, a Lisp that compiles to Python

#64
post #44

Earlier quoted context omitted.

Some people who are members of Abrahamic religions (Christianity, Islam, Judaism, Mormonism, etc), interpret the (2nd or 3rd Commandment, depending on how you are counting) "shall not take the lords name in vain" thing to imply that you must not say the word "god" (You will frequently see 'g-d' used by these people). Others see it as a prohibition against using the word "god" irreverently. Others see it as a prohibit…

Incidentally, there is yet another interpretation of "taking the Lord's name in vain"[1] to mean "to speak as if you have the authority of God." Some people seem to believe that certain words, by their nature, have different power than other words of equivalent meaning. So you see this sanctimonious abolition of "cursing", where it's okay to say "darn" instead of "damn" and "butt" instead of "ass" and "I am displease…

Ok, but even in that interpretation, saying "god damn it" is "god should send that thing to hell", which doesn't seem like it should be said lightly, and, um, treads close to speaking for him.

Re: Hy, a Lisp that compiles to Python

#65

Earlier quoted context omitted.

Incidentally, there is yet another interpretation of "taking the Lord's name in vain"[1] to mean "to speak as if you have the authority of God." Some people seem to believe that certain words, by their nature, have different power than other words of equivalent meaning. So you see this sanctimonious abolition of "cursing", where it's okay to say "darn" instead of "damn" and "butt" instead of "ass" and "I am displease…

I was under the impression that this was considered the proper interpretation by theologians. The common interpretation was the same type of common wisdom as the belief that "god helps those who help themselves" is in the bible. This seemed obvious when I was a child and cared about these things anyway. But goddamn, I had never put together the fact that 'it is the people who say, "you shouldn't say Goddammit, it's o…

Yep. And it's the interpretation preferred by a lot of us non-theologian-but-believing-and-thinking Christians too. Alas, not the vocal ones who get on TV. I find it more 'offensive' that politicians invoke God's name to promote nationalism and wars that if someone says 'goddamn' or 'oh my God' or whatever. (Don't even get me started on that evil bullshit from the "Westborro Baptist" cult - that is extremely offensive to me as a Christian. That is /seriously/ using God's name in vain.)

I was somewhat under the impression that a lot of the insane over-zealous legalism of 'modern' protestant Christianity was at least somewhat since the Victorian era. A lot of European countries (not the UK) have a much more realistic approach to 'cusswords' and 'swearwords' and so on.

Looking at many past theologians (Martin Luther, for obvious instance), you find that there was much less of an insistence of 'clean' language. We live in a dirty, messed up, stinking world. Sometimes it's appropriate to use words that reflect that. What we're called to do is help to make that world less filthy, and help heal the broken people. The words we use, although not irrelevant, are certainly of much less importance that contemporary religion seems to think.

The bible itself has a couple of instances of 'foul' language, actually. English translations normally tone it down for their audiences... Which is kind of ironic, since most of it was written originally for non-priggish earthy real people, who spoke in street language, not in high class ecclestiatical nonsense (the New Testement is in Koine (common) greek, not in formal classical Greek.).

Re: Hy, a Lisp that compiles to Python

#66
post #61

Either I have (good or bad?) luck or I've got some zeitgeist hunch or something, but first I had a convincing WIP of implementing Ruby in RPython when Topaz went out, and now while I'm working on a Lisp[0] — again in RPython — comes Hy. Well at least Hy is markedly different, as my goal is not to compile to Python AST/bytecode, but "merely" be implemented in (R)Python (and C for LLVM) with no access to the Python run…

Looks great! Just a heads up here for a name clash of another wasp lisp.

https://github.com/swdunlop/WaspVM

Re: Hy, a Lisp that compiles to Python

#67

Earlier quoted context omitted.

Incidentally, there is yet another interpretation of "taking the Lord's name in vain"[1] to mean "to speak as if you have the authority of God." Some people seem to believe that certain words, by their nature, have different power than other words of equivalent meaning. So you see this sanctimonious abolition of "cursing", where it's okay to say "darn" instead of "damn" and "butt" instead of "ass" and "I am displease…

Ok, but even in that interpretation, saying "god damn it" is "god should send that thing to hell", which doesn't seem like it should be said lightly, and, um, treads close to speaking for him.

Saying it lightly clearly means you don't really mean it. You're not literally trying to convince someone that God is going to damn them. As I said, I would think a supposedly omniscient God would know the difference.

Re: Hy, a Lisp that compiles to Python

#68
post #17
post #10

Earlier quoted context omitted.

Python is already functional enough, it's the brain behind the keyboard wasn't that much functional before ( that was me )

Okay, well at least you can add a proper distinction between variable binding and assignment (let vs. set!) if you have macros, but that doesn't really make it more functional, just better.

Well, you could implement proper distinction. let and setv both compile to setattr() in the current scope right now.

Re: Hy, a Lisp that compiles to Python

#69
post #63

Why the non-tsandard names of everything? And... CLOS?

What is the standard you're talking about? Common Lisp? Scheme? Clojure? Emacs Lisp?

Hy looks like it borrows heavily from Clojure, which borrows from Common Lisp in terms of names, but they are both different languages and so they differ. About the only objectionable name I found in Hy is `assoc`, which I'd expect to return the value with given key and not set it.

And CLOS is quite a good object system, actually. I somehow missed how it's implemented in Hy, but multiple dispatch would be cute in Python.

Post reply on HN