Live data from Hacker News

Hy, a Lisp that compiles to Python

github.com

51–60 of 75 posts

Re: Hy, a Lisp that compiles to Python

#52
post #43
post #15

Earlier quoted context omitted.

Give me a fucking break, neutering language because somebody somewhere might hypothetically be emotionally damaged by reading it is something that we can save for marketers writing bone-dry press releases. If you don't like that word, then you don't have to say it. Pestering other people for saying it is a joke. Why don't you go submit pull requests to every single fucking project using the WTFPL license while you ar…

What was the original (now deleted) comment about?

It seems like someone is offended by the use of the word ___damn in the readme (censoring myself here so I don't offend them, I guess).

https://github.com/hylang/hy/pull/499

Re: Hy, a Lisp that compiles to Python

#53
post #40
post #35

Earlier quoted context omitted.

i'll ask you the same questions i asked the parenjs author, and which i think are pretty much faqs if you're developing a language-hosted lisp dialect. (some of them, like the interop ones, are answered in the hy docs, but it would be nice to have a quick up-front list for reference). * lisp-1 or lisp-2? * scoping rules? * 1-way or 2-way python interop? * lisp support for python objects? * any support for tco or loop…

* lisp-1 (Python rules) * Python (sucks) * 2-way * Yep! CLOS syntax * Yep! hy.contrib.loop - to be promoted soon * Yep, they're OK, relies on dispatch char that's static * Very little, actually - it compiles to (pretty sane) Python AST / Bytecode - so good pdb works to debug Hy :)

awesome, looking forward to checking it out :) shame about the scoping, as you say, but i guess the python interop made it the natural choice.

Re: Hy, a Lisp that compiles to Python

#54
post #28
post #11

[deleted]

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

Some people believe in magic, i.e. the ability of words to have power over their environment completely separate from the bare meaning of them.

Re: Hy, a Lisp that compiles to Python

#55
post #31

Language author here :) if anyone wants to learn more, we have a pretty sweet team over in #hy on freenode, and have some MLs and stuff sprinkled around.

In a way Hy seems to be to Python what Clojure is to Java / JavaScript. Did Clojure influence you and if so, how?

Congrats and nice looking terminal : )

Re: Hy, a Lisp that compiles to Python

#56
post #44
post #28

Earlier quoted context omitted.

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

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 displeased" instead of "this is fucking bullshit".

So this notion of "taking the Lord's name in vain" must mean something else. A little study of context tells us that many shamans and prophets and priests of various religions would "invoke" the name of their god when making decrees to lend authority to their statements.

Which doesn't work if you're trying to prove out the legitimacy of God. Whomever wrote The Bible understood some things about logic[2]. He knew that appeal to authority was a logical fallacy, and thus much of the judeochristian system is predicated on the personal relationship between man and God and the dangers of overtrusting Church leadership. "The devil will quote scripture to you."

And intent matters. If you say "it's a pleasure to meet you" with your jaw and fists clenched, you probably don't really mean it, and are basically telling a lie. A poor lie, but a lie nonetheless. Does saying "gosh darnit" really make a difference to an omnipotent and omniscient being such as God? I think He would know that you meant, "God fucking dammit all to burning hell in a whore's handbasket"[3].

Because one must understand the reasoning behind God's laws. It doesn't matter if you literally pushed the knife into a man's heart or just arranged for it to happen that someone else kill the man, you killed the man. To follow the letter of the law but not the spirit of the law is duplicitous, dishonest. This sort of behavior is held up throughout the Bible as that of the "Gentiles", the non-Jews who mince the Lord's law.

So this is where the prohibition against "taking the Lord's name in vain" comes in. It's about "do not deign to speak for God." And with that understanding, it becomes clear that it is the people who say, "you shouldn't say Goddammit, it's offensive to God" are the ones who are committing said sin in the first place.

So yeah, fuck em.[4]

[1] If you don't already, for a moment, assume the existence of the judeochristian God, if only to allow for me an easier writing job. It is not meant as an assumption that you believe in such things.

[2] emphasis on some.

[3] for example.

[4] okay, you may revert to your regularly schedule religion now.

Re: Hy, a Lisp that compiles to Python

#57

Most of the programming language Y to language Z requires the user to know more Z than Y. Kind of losing the point there. Everything's not only about making points, but still...

For a Lisp fan, merely learning another language is fine. It's the need to actually use that other language day to day that creates a lot of obvious wasted repetitive effort and friction. Without macros, much of what the software industry produces is essentially macro expansions done by hand (sometimes called "plumbing" or "infrastructure").

Re: Hy, a Lisp that compiles to Python

#58
post #3

This terminal cracked me up: http://try-hy.appspot.com/

Looks bad in windows chrome though. this looks better to me:

  #hy-console {
      margin-top: 191px;
      margin-left: 223px;
      -webkit-transform: rotateX(-20deg) rotateY(5deg) rotateZ(5deg) skewX(4deg);
      transform: rotateX(-20deg) rotateY(5deg) rotateZ(5deg) skewX(4deg); 
  }

Re: Hy, a Lisp that compiles to Python

#59
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…

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 offensive to God" are the ones who are committing said sin in the first place'. That's an excellent observation, thank you. The rest of it's well explained as well.

Re: Hy, a Lisp that compiles to Python

#60
post #10
post #6

Earlier quoted context omitted.

This doesn't make Python any more functional, all it does is change the syntax.

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

Imho it lacks good types. Python with the clojure collections as default types would be awesome.
Post reply on HN