Hacker News new | past | comments | ask | show | jobs | submit | diadara's comments login

https://github.com/hylang/hy/blob/master/docs/contrib/loop.r...

I thought this is not possible in python. Can someone explain ? Python doesn't have tail call optimization and hy produces python AST. Am I missing something ?

I tried reading through the source, but I am still a lisp noob. https://github.com/hylang/hy/blob/master/hy/contrib/loop.hy


The entry is misleading. We don't really do TCO. It's just a trampoline calling the loop/recur form until there is nothing left to produce.

Same solution clojure has, as the JVM dosn't allow for TCO.


https://www.youtube.com/watch?v=wSF82AwSDiU Have you seen this TED talk about porn addiction and how it has similar effects like some sort of hard drug addiction on the brain. Everything uses the same pipeline.


Is that the one which comes with a touch screen ? Have you tried using the touch screen ? And I have heard that the whole thing is very flimsy due to the carbon fibre build, what's your take on this ?


Yes, I got the one with the touch screen, but if I had to do it over I'd have gotten the non-touch version with a matte screen. Touch screens are just too reflective. The touch screen actually works fine, but gnome treats it like a mouse. It doesn't bother me, but might bother people who expect all the gestures you get with Windows.

Carbon fiber only seems flimsy when you've never had a notebook made of it before. It does have a little flex in the screen, but not much. The flex isn't a bad thing, mind you. I've had several carbon fiber laptops and the flex helps them bounce when they're dropped and can help prevent damage if something stupid happens like someone reclining their airline seat into your screen in just the wrong way.

The other benefit is that the laptop is seriously light. The 13" Air feels pretty heavy in comparison.


I love quoting RMS. "What schools should refuse to do is teach dependence. Those corporations offer free samples to schools for the same reason tobacco companies distribute free cigarettes to minors: to get children addicted. They will not give discounts to these students once they've grown up and graduated."

Surely this applies only if you consider chromebooks as free and this not true atleast by RMS standards.


ain'tnobody got time for that. Gentoo is cool and all but I don't want to compile everything from source.


I used to use Gentoo back in the day, then I got a laptop and was like "I won't have time to compile everything!" Then I distro hopped for a few years, never really being happy, I am now happily back on Gentoo.


Didn't gentoo do away with the stage 1/2/3 stuff a couple Years ago?


They did, but then you have to spend all of your time fixing broken packages whenever you do a world update. :P


Depends on how do you define a Hindu kingdom.

http://en.wikipedia.org/wiki/File:Hindu_distribution.png


I'd define it as places RULED by Hindus (preferably a single central monarch)


I had to install kde as I couldn't get matlab working in xmonad. Found out about this fix only recently.


My exact feelings, I did c++ in high school with some ancient borland c++ compiler. I always felt I don't know enough of c++ whenever I happen to go through some modern c++ source code. I just realized that is just the STL.


Well, the STL (actually, that term has fallen out of favour , its now The C++ Standard Library) is a core part of the language to the extent that I've often heard it said that if you don't use it, its not really C++ at all. For example, if you use char* for strings (instead of std::string), then you're not actually using STL. If you use arrays instead of containers (std::array, std::vector etc) then its not really C++. Stuff like loops (except I guess the C++11 foreach loops), conditionals, functions etc is all basically just C. The C++ is more than just adding classes - its also adding templates, new semantics (eg move semantics, initializers etc) and the Standard Library.

Having said that, you probably DO know more C++ than you realised :-)


Clementine is great, but I sometimes wish they could implement some scripting/plugin mechanism somehow .


Someone is going to make a lot of money.


…in 20 years, when the patent expires.


According to the video, it was funded by the EU in hopes of mass deployment to reduce energy waste in supermarkets (no need to keep an entire open drink case chilled if customers can cool their drinks on their way out the door), and they're planning to license it worldwide for a reasonable price.


> for a reasonable price.

Either the license will be cheap, in which case nobody will get rich from it, or it will be expensive, in which case no product companies will buy the license and nobody will get rich from it. Basically, nobody will get rich from it.

In 20 years, however, when the patent expires, it will be old tech, so probably only a single company will dare to invest research into a new product using this now-old tech. This company will know what happened last time: If the license was expensive, they will try to be cheap to avoid the same mistake twice, and it will be good tech, sold cheaply, which will probably sell well and make them a lot of money. If the license was cheap, they will want to avoid the stigma of the glut of low-quality goods the cheap license allowed back in the day, so the new product will be high-end (probably renamed and re-purposed to another field), which means a high margin, which has a good chance of making them a lot of money.

Basically, some company will probably make a lot of money.

In 20 years, when the patent expires.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: