Recent submissions

Comment · 8 years ago
Comment · 8 years ago
You are both right. I was specifically asking about "stackfull coroutines" as tatterdemalion says, but I stackless coroutines with await/async would be as good for code readability.

Thanks for your work btw.

Comment · 8 years ago
Look at the tokio chat example: https://github.com/tokio-rs/tokio-core/blob/master/examples/...

  let line = io::read_until(reader, b'\n', Vec::new());
  let line = line.and_then(|(reader, vec)| {
     if vec.len() == 0 {
       Err(Error::new(ErrorKind::BrokenPipe, "broken pipe"))
     } else {
       Ok((reader, vec))
     }
  });

  // Convert the bytes we read into a string, and then send   that
  // string to all other connected clients.
  let line = line.map(|(reader, vec)| {
    (reader, String::from_utf8(vec))
  });
  ...
With monads we end up with much boilerplate that has nothing to do with the actual "business" logic.

Maybe you prefer that, but I prefer the code to describe just the business logic.

Comment · 8 years ago
Any plans for “stack full” co-routine(go style).

IMHO the current “Futures” monad style solution makes the code look a bit confusing.

Comment · 8 years ago
> People created dynamic languages for the exact reason of not having to define types.

Not having to define types is not the biggest merit of dynamic languages.

The biggest benefit is to be able to do things that you couldn’t do if you had a type system. You can do some crazy stuff with Ruby’s meta programming.

Comment · 8 years ago
For me, static typing actually makes it easier and faster to write code. It’s like someone looking continuously over my shoulder for mistakes.

I am the least efficient when I write code in JS.

On the other hand with Ruby, and meta programming, I can do stuff that would be impossible to express in the most popular type systems.

Comment · 8 years ago
Another sample of one: I pay for a personal account, although I don’t really have any projects that couldn’t be public, and my company pays for company account.
Comment · 8 years ago
> Microsoft has changed

Changed? What makes you say that?

From the tiny interaction I have with MS I don’t think this is the case.

E.g. In my wife’s PC I have Firefox as the default browser, however:

1. If she clicks on one of the login manager wallpaper photos, the page opens in MS Edge.

2. Every time there is an update, MS Edge reappears as an icon on the desktop.

No, MS hasn’t changed. Their PR may have, but at core they are as evil as ever.

Comment · 8 years ago
Just because someone did it, it doesn’t mean it’s wise and advisable. Just saying.
Comment · 8 years ago
> I think it’s worthwile question to everyone who is lamenting here about the future fate of GitHub if they put their money where their mouth is?

I imagine most HN readers are paying customers either directly or indirectly(their company/startup).

As a private customer, I wouldn’t object to an increase in the price if that meant they stay independent. If they get acquired by MS I am definitely stopping my subscription.

Comment · 8 years ago
People base their expectations on past performance. And for MS it hasn’t been stellar. But there is no need for speculation; we will wait and see.

The problem is deeper than that though. Unless you were developing an Editor or a Git hosting service, you were not in direct competition with GitHub. Suddenly a lot of startups will find their private code hosted by a direct competitor. I wouldn’t feel comfortable if I was them.

Comment · 8 years ago
> The Silicon Valley hipster development ecosystem does not have a problem with how Google respects privacy.

I don’t think that’s the case anymore.

But then again “the SV hipster development ecosystem”. Who is that exactly?

Comment · 8 years ago
> Meanwhile, I'd really like for people to stop hating Microsoft just because "Microsoft"

Why is that? Why should people forget how evil MS was and still is?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton