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

kona

I use it as my shell.


By which they mean Kona (https://github.com/kevinlawler/kona), an open-source implementation of a K-like language.

Any commands in its repl that are prefixed with "\ " are sent as-is to system(3).


[deleted]


"\ command" (e.g. "\ ls") works, you don't need to type exec. It passes the rest of the string to system: https://github.com/silentbicycle/kona/blob/master/c.c#L423

I'm one of the kona developers.


How to avoid forking?


I have a fork because I sent several pull requests back, before I got commit rights to the main repo (kevinlawler's).


I meant fork(2). Maybe edit the source to optionally use execve?


Oh, right. execve replaces the existing process with the invoked one, so I'm not sure that use case makes sense. Usually execve is used with fork, too.

If you're concerned with Windows portability, mmap(2) is a bigger problem. Otherwise, not sure why you're asking...?


Sometimes I don't want to fork, e.g., if there's nothing waiting for input, e.g., the last program in a pipe.

prog |prog |exec prog

The usual way to do this is to put it in a shell script, then run the shell script. Though it would be nice in some instances, you can't run exec from a shell prompt or you'll exit the shell. I was thinking that if I'm in the kona console, executed from a parent shell, then I could type exec from the console and run programs without forking, because it's not going to cause kona to exit. Wishful thinking.

To stop forking, you would have to add an option to call execve() instead of system() in the kona source.


Oh. That wouldn't need much changed to work. I probably won't get to it for a while, but a patch/pull request would be welcome.


Has anyone read the motion (available from an economist.com server)? This what the Rolling Stone article is based on.

Is the issue whether and how GS makes money from the practice of naked short selling? Maybe the issue is that feeding the market with info about short sales that are never actually cleared (but which the market assumes will be cleared), can destroy the value of a company's stock.

Obviously if you can sell something without ever having to own or deliver it (is that really a sale?), you can do a lot of selling; and you can exert considerable influence on the market for a stock.

Maybe what happened here is a company, Overstock, believes they got screwed by naked short selling.

I need to read the motion to get a better idea of what happened.


"The best solution is not to need money."

"The startups that really get hosed are going to be the ones... that pay little attention to profitability."


Mirror replies: That's a tough question, Nathan, because you just keep creating new ones. No single company can accumulate that much hate and they can't be easily linked to a single source. Disperse the hate. I must admit, you are one clever guy.


Should the public have the right to see the full details of "fails"?

The SEC website says disclosing this info would put firms like GS at a competitive disadvantage.

But someone has to know which sales cleared and which did not.

How can we accurately set a market price for something based on historical sales data that may in part be false (i.e. sales that were never cleared)?


"after much deliberation the <bold>Chrome team is now experimenting with building its own DNS resolver</bold>"

With all due respect, I think you have missed the point.


That would not be a welcome change for me.

I use some hosts file overrides for two reasons:

1) testing at $dayjob

2) to block some spammy things, and if their in-browser resolver did not take those into consideration

If either of those were impacted, it would be bye-bye chrome.


Just tested it in Canary builds and the async DNS resolver does parse and respect /etc/hosts.


Great news! Thanks for testing igrigorik.


The Chromium experimental DNS resolver should respect that. If it does not, it's a bug and please file it at new.crbug.com.


"after much deliberation".

Why did the team deliberate so much?

I will let the readers ponder this.

There are already some very good stub resolvers and resolver libraries available to users (e.g. dnsqr and the djbdns library). I have a hard time believing Google is going to do better than djb.

Of course I have no problem with them or anyone else writing another one. Have at it. The more attention brought to name resolution the better -- because it can be so easily abused for questionable purposes, it is something that deserves user oversight.

But why does Google need to place theirs _inside the browser_? That is a very curious design decision.


The original comment in this thread seems to have been deleted, so I can't tell what was said. The primary reasons for implementing our own DNS resolver include: * Being able to fully instrument it. As the article mentions, we have internal debugging pages like about:net-internals, which rely on this instrumentation. * Being able to run experiments. Google Chrome releases often run A/B experiments to play around with different configurations to see which has better performance and what not. This is harder to do with a 3rd party library.

As Ilya notes, a fuller discussion can be found at the G+ post's comments section.

Note: I'm a Chromium developer on our network stack. I'm also the author of the G+ post linked to in the article.


I remember reading that thread some time ago. Are you the engineer who was rude to the journalist?


I think you have someone else in mind. Perhaps one of the commenters on her article?


I linked to Will's post in the article, definitely worth a read: https://plus.google.com/103382935642834907366/posts/FKot8mgh...

Check the comments, there are some very good discussions in there with Daniel Stenberg about c-ares and other resolvers.


I hypothesize their reason would be because they want to turn chrome more into a full os (chrome os/chromebook), and bring more things in house. I also recall something about some resolvers having through when ipv6 is enabled but not actually functional. Possibly they are trying to make such things a bit more seamless.

I, currently at least, would still prefer that the os handle name resolution.


Interestingly, but off topic, Go has its own DNS resolver that it uses when the getaddrinfo C API isn't available.


You mean the Go tools have their own resolver?

The blog at miek.nl says that Go had a DNS library written in Go in the provided samples for a while, then they removed it. It would be interesting to know why.


Go's net package has its own resolver. See http://golang.org/src/pkg/net/dnsclient.go http://golang.org/src/pkg/net/dnsclient_unix.go

But yes, it does not appear to be used anywhere now, as all of the dns lookups for each platform seem to end up at cgo calls.


Interesting to read the comments. They should just rewrite the C resolver library for UNIX. Let's face it, the Plan 9^W^WGo team would probably produce a more elegant result than what we're using now, which has had its share of bugs over the years.


Perhaps we could draw it as the difference between "would pay" and "paid".

You can put a price on something, but until someone has paid it, it seems difficult to argue that the thing is "worth" your price... to anyone. But people routinely argue this, and others believe them.


But that is what the stock market is: A constant and immediate recalculation of worth.

To take another example: Facebook obviously, at the time of IPO, was not worth what it sellers hoped it would be. At some point in the future it will be worth much more than it is today, and at some other point it will be worth nothing. Today, the agreed worth/value of one FB share is $27.


Anything that cannot boot from USB, SD card, or some externally connected media, should be approached with caution.

If you can boot from external media, then generally you can dual boot. Someone may have to show you how to prepare media for booting, but it's quite easy once you have been shown. Today's PC's all seem to have good support for booting from external media. Are we going to see this removed in ARM devices?

You do not have to shop for devices that have an "open" bootloader. You have to shop for devices that can boot from external media. (For today's PC's, that's quite easy.) If you have a device that can boot from external media, we can show how to do the rest.


Did Lewis work at Goldman? Have you read Liar's Poker? How are you qualified to comment on his career?


Did you read the article? He talks about how he got his goldman job as a result of a series of events that started with him happening to be sat next to the wife of a goldman employee.

Yes, I did read Liars Poker. I think its kinda funny that you question whether I am qualified to comment on his career, but a little bit of research shows he worked at goldman for awhile, wrote the book and has been a writer ever since. In other words, his success is clearly in writing.


It's really hard to avoid the perception that you haven't read the article, or the book, or done the little bit of research you're referring to, since Michael Lewis never worked at Goldman; not only did he never work at Goldman, but the whole last part of Liar's Poker is about the famous and epic collapse of the firm he did work for, and about him leaving finance after the collapse occurred.


Its really hard to comment on Hacker News without getting a reply from you where dishonestly exaggerate what I have said to try and impunge me. (which is, frankly, ad hominem)

The fact of the matter is that "Goldman" had replaced "Soloman" in my head in the intervening years and so I typed the wrong thing.

I think its hilarious that you guys are trying to shut me up and attack me because it is such a plain admission that you cannot actually make a counter argument, and thus you must evade and engage in the standard issue ad hominem and censorship approach. Hilarious and sad.


It's a really great book, is all.


You seem to be consistently confusing Goldman Sachs and Salomon Brothers.


Can you quote the portion of the article where it says he sat next to the wife of a Goldman employee?


Say what? The word goldman doesn't appear anywhere in the speech.


You mean Salomon Brothers?


"This isn't just false humility. It's false humility with a point."

This is why I like Lewis' writing. Liar's Poker had a huge influence on me at an influential age.

There's always a sense that he's playing the same game that he's writing about. And not in a George Plimpton sense. But he's often got a message to deliver that other players will not touch. The message always seems worth hearing.

I interpret his reference to the Berkeley study as not one that explains "luck", but of one that explains how life is role-based. People take roles and play them, as if "all the world's a stage". It is. We are all willing to go along either as the audience or in our appointed roles. What I think Lewis means to say is that the assignment of roles, the "casting" if you will, is often arbitrary.

I only wish Lewis had made this longer. There is so much more to say. Not only do people not like success explained as "luck" but they insist on success being attributed to "brilliance", "genius", "hard work", etc. In this case, when the cause of an effect is not clear, we are very quick to find one that suits our purposes.


Re: making it longer. I think it was pretty much spot on in terms of length. This is a speech at graduation/commencement, nobody wants to hear someone yammer on and on and on. He had a point, which he illustrated with 3 concise examples (Liar's Poker, Moneyball, the Berkeley study). He could elaborate, certainly, but I don't think this was the forum for it. Maybe he'll find a venue in which to elaborate at some other time, but I think this pretty much perfect.


You are right, of course. Perhaps I momentarily forgot the context. I am reading his words on HN, not listening to them at a commencement. Big difference.

I confess I have not read Moneyball. I mistook it as the work of a baseball fan and not a metaphor for something more than an appreciation for baseball. My mistake.

It's time for me to read it.


If you want people to remember what you have to say, make your point, and get off the stage.


Similarly I've long noticed a connection between brevity and stature. In speech, writing and behavior. With sales by the way it's always important to get your ass out of dodge after getting agreement from the customer, lest they change their mind.


Getting out of dodge.

Maybe this is why he was brief: His point is a potentially unpopular one.

It is just a very interesting topic. One that few who are successful would dare to explore in depth.

It would be interesting to hear how his brief remarks were received. Did people like what he had to say?


"Always leave them wanting more" isn't just advice for show business.


Talks in most TED categories are ranked better when they're longer. http://www.ted.com/talks/lies_damned_lies_and_statistics_abo...


"Better" implies enjoyment, among other things. It does not mean the message stays with the viewers.


Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: