News for hackers. Stuff that matters.

zxcvhjkl

ARM/MIPS are Tier 2 platforms for Rust: https://forge.rust-lang.org/platform-support.html
Re:Announcing Rust 1.26.2 on Tuesday June 05, 2018 @04:33PM (#17241761)
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.

Re:Announcing Rust 1.26.2 on Tuesday June 05, 2018 @04:27PM (#17241707)
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.

Re:Announcing Rust 1.26.2 on Tuesday June 05, 2018 @03:45PM (#17241360)
Any plans for “stack full” co-routine(go style).

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

Re:Stripe is building a Ruby typechecker on Monday June 04, 2018 @03:44AM (#17225434)
> 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.

Re:Stripe is building a Ruby typechecker on Monday June 04, 2018 @03:39AM (#17225423)
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.

Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @09:39PM (#17223821)
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.
Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @09:32PM (#17223783)
> 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.

Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @09:24PM (#17223742)
Just because someone did it, it doesn’t mean it’s wise and advisable. Just saying.
Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @09:21PM (#17223724)
> 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.

Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @08:51PM (#17223572)
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.

Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @08:37PM (#17223494)
> 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?

Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Sunday June 03, 2018 @08:36PM (#17223483)
> 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?

Traffic doesn’t even reach the driver. It’s all ASIC.
Cisco IOS, NXOS, IOS-XE and IOS-XR are C/C++.
Re:AT&T updates firmware to block access to 1.1.1.1 on Wednesday May 02, 2018 @09:40PM (#16982699)
I wish it was true. Where I live it’s either Comcast or ATT.

Comcast will happily block ports to “protect” me:

https://www.xfinity.com/support/articles/list-of-blocked-por...