Better HN
topnewbestaskshowjobs
Log inSign up

AsyncAwait

7,526 karma · joined Apr 12, 2015 (11y ago) · 2,298 submissions

Submissions

comment 10y ago · link · parent

http://www.printfriendly.com

comment 10y ago · link · parent

If we ever want 'true AI' then interacting with the world would certainly be a crucial component of building one. Text is a crucial component, but ultimately being able to 'see' gives one an entirely new perspective on what words mean. There's a reason after all, for why toddlers touch hot surfaces even after repeatedly being told that it will hurt - until they experience it for themselves, the word 'hot' doesn't quite connect even if they heard it dozens of times and have a very good abstract sense of what it means.

comment 10y ago · link · parent

Not only save, as a disabled person who cannot drive a car, self-driving cars would instantly improve my life experience.

comment 10y ago · link · parent

Maybe it's about the willingness to support the content creators, rather than the fear of being prosecuted?

comment 10y ago · link · parent

So I see a lot of confusion about what LWN is on here. While it provides a detailed write up of recent kernel development for sure, it is far from the only thing they do. LWN is first and foremost a great way to stay on top of the most important developments in the free/open-source community, without having to browse tens of mailing list discussions on a weekly basis. I see it as giving me a way to keep a tap on the pulse of the community and thus be ready when changes come. They have reports from every FOSS conference or hackaton and condense the main points into a very readable summary that saves me time, while still keeping me informed.

Apart from kernel development, it did excellent technical reporting on systemd, prior to it being widely adopted and it does a great job of keeping you in the know of how things like wayland are actually progressing.

As for the parts that are genuinely over my head, I've been surprised how many times I've read about something on LWN and not really understanding what I was reading about at the time, but connecting the dots later.

You know when you read something and have no use for it, so you delete it from your front-end memory, but it resurfaces just when you actually need it?

Just to give an example, I remember reading a series on LWN some time ago about how virtual memory is managed in the kernel and now that I am writing a toy OS in Rust, I regularly have flashbacks to that series and it makes the concepts that I am learning about now genuinely easier to grasp, because I can make an instant, be it clouded connection that I did in fact hear about this and this already, even if it didn't make a lot of sense at the time.

There's also been times when the kernel has been misbehaving on me and I remembered that there was an article on LWN talking about this very issue and how adding a certain kernel boot parameter may resolve it, and it usually does.

For me, LWN is well worth the $7 a month they ask for it just on these points alone, it is one of a very few internet publications that in fact I am willing to pay for and consider it money well spent.

comment 10y ago · link · parent

I just don't think that going beyond a simple website with 'blessed' crates has much benefit, but it certainly has a lot of disadvantages as outlined in this whole thread. I'm simply saying that if the goal is to have a central place to point to when somebody asks, 'how do I do X', then perhaps making a website/improving crates.io in this regard is the better approach for the continued growth of the still very much evolving Rust ecosystem, rather than creating a Rust "distribution" as such.

P.S. Thanks for all your work Steve, it's really appreciated.

comment 10y ago · link · parent

If the aim of the Rust Platform is to provide a 'blessed set' of 3rd-party libraries, why not have something akin to an official, curated 'Awesome Rust', where depending on what you want to achieve you can get a streamlined list of well-maintained libraries, perhaps with user-submitted usage-examples, comments, alternatives and the like - that way, you're not constraining Rust itself to be in sync with all the 3rd-party libs, (and thus by necessity stagnating to a certain degree), nor you're making authors of libraries that are not in the Platform feel essentially invisible.

comment 10y ago · link · parent

I am actually working on a GUI BitTorrent client in Swift, just converted my code to Swift 3 this morning, (I'm in the EU), quite far to go still, but I hope to have an alpha release out in Q4.

comment 10y ago · link · parent

Go has a relatively weak, unsafe type system despite being statically typed. Also, lack of generics, optionals or tagged unions is kind of a bummer.

comment 10y ago · link · parent

Agreed, Vapor[1] is coming along nicely.

1 - https://github.com/qutheory/vapor

comment 10y ago · link · parent

That was true prior to last year's 1.0 being released, but since then code no longer breaks, (in any major ways anyway, there's been some soundness fixes for the good of the language's future). Also, the Rust teams runs any potentially breaking changes against the crates at crates.io and they even sent fixes to existing crates in the past.

comment 10y ago · link · parent

Not as great as a full IDE, but Atom.io + tokamak(https://vertexclique.github.io/tokamak) + atom-ctags(https://atom.io/packages/atom-ctags) get you a decent editor/light IDE setup.

I agree however that it would be nice to have ie lifetimes visualized and stuff like that, hopefully sometime soon...

comment 10y ago · link · parent

I've come to the conclusion that is because Apple can't release anything that may not look (on paper) as being "ready", since they built their image on attention to detail and polished products - so in other words, a Swift 0.x. would not have seem polished/professional enough for Apple to release into the wild, even if it had all the present functionality.

comment 10y ago · link · parent

I actually find Swift and Rust to be pretty similar in how they approach things from the end-user perspective, (I think of Swift as application-level Rust), it's just that Rust targets a different market which involves quite a bit more complexity in its domain, which is reflected in the language where needed.

comment 10y ago · link · parent

I currently don't have access to a Windows box, but am currently working on a CLI app in Swift for OSX and Linux. It would be interesting to see if this effectively makes swift cross-platform "for free".

comment 10y ago · link · parent

Spot on, while I see problems with many of the latest technologies myself, not EVERYTHING is hype and I am getting tired of people labeling it as such just because they don't want to learn it/make the switch but want to mask it like they would if it wasn't just hype.

I've seen this very recently personally, where I was accused of adopting hype for switching to Swift for a major rewrite of my app, where I'd pretty much start over in Objective-c anyways so I may just as well do it in a safer, much nicer language that's going to be the future of the platform eventually anyway...

It turns out that you don't have to switch - if your current stack works well for you stick with it. It doesn't make you "less cool". But it also doesn't mean that somebody else doesn't have a legitimate reason to adopt the new technology, and this is a pretty textbook example of what I'd call a justified switch.

comment 10y ago · link · parent

Why does signing up for the beta require agreeing to a non-disclosure agreement?

comment 10y ago · link · parent

Awesome! This is what I'm talking about; now that Swift is open-source we can see which improvements have landed and what is coming next. Thanks for the link.

comment 10y ago · link · parent

Some of the things off the top of my head in no particular order; protocols, (closer to traits than interfaces), Optional types, (elsewhere no null types), pattern matching (if let, case let), guards, (so you can cover your preconditions nicely), immutable let bindings first, var variables second, (with mutability being tied to the binding outsite of reference types/classes), tuples, lazy evaluation, flexible closure syntax, fairly powerful type inference, enums as tagged unions, (or as standard C enums if you want), extensions - even for core structures if you need it - straighforward way to define custom or overload existing operators, type system powerful enough to be able to implement a fairly convincing Functor, Applicative or Monad without much effort, structs AND classes, most things are value types...

But most importantly to me, Swift is composed in such a way that it just 'clicks' for me, ie many times many times I can guess how something is likely called or how it will behave without looking at the docs and I have a solid chance of being right - that 'intuitiveness' is something that is lacking in many other languages I've used over the years.

In regards to C#, by now it is definitely not just a Java clone anymore, in particular saner type system and much more functional features edge it for me over Java, plus the speed of evolution is much greater in the C# land. If you want to see how C# and Java differ but are tied to the JVM, try Kotlin: http://kotlinlang.org - it's fairly similar in feel to C# and has 100% Java compatibility.

comment 10y ago · link · parent

Yeah, somewhat related to that; it's not currently possible to have typealias for a type with generic parameters, one has to wrap it in a struct or an enum, however Swift is very much not done and they're catching up quickly, so I'm optimistic, especially now that we can see and affect what's coming next.

comment 10y ago · link · parent

As someone who refused to sink any significant time into Swift until they open-sourced it, I have found it to be the most productive statically-typed, native language out there. Its type system feels like the best of C# and Rust, while it feels that the speed at which one can pick it up is not that much greater than that of Go despite being a much richer language, (I've started learning in January and am at the level now where I can take on a fairly complex Swift project and feel comfortable about being able to finish it in time, plus I now use Swift for almost any programming task, 90% of them at least). Plus, you have to give Apple credit for getting the open-source release right, (GitHub, pull requests, proposals, mailing lists, frequent dev builds, Linux support - I guess Chris Lattner has been the one driving this, but I have to give credit to Craig Federighi and Tim Cook for letting him do it.)

The only part that frustrates me is that SourceKit seems to crash every other minute for no apparent reason - but that is no fault of the language itself.

Swift is the first piece of Apple software I'm genuinely excited for. Congrats to everyone who contributed to the 2.2 release

comment 10y ago · link · parent

The new CLion 2016.1 release has some Swift support on Linux via a plugin: https://plugins.jetbrains.com/plugin/8240

comment 10y ago · link · parent

Nice project.

As was already mentioned, the main benefit of Elixir seems to come from BEAM, (Erlang VM) and its associated cockroach-like properties. There's also Crystal (https://github.com/crystal-lang/crystal), if what you want is a Ruby-inspired language with static typing and compilation to native code.

comment 10y ago · link · parent

I also think Rust is magnificent, the way they combined manual memory management with the feel of an automatic one, all at compile time, paired with the rest of the type system; functional, compossible and flexible, is exactly the level of practical, useable innovation I would like to see more frequently.

2275.

A draft of “Programming Rust” by Jim Blandy, former Emacs maintainer(shop.oreilly.com ↗)

2 points · by AsyncAwait · 10y ago · discuss

comment 10y ago · link · parent

There's SuSE rolling, but I can also attest to Arch being super stable.

comment 10y ago · link · parent

There's always the rolling release route, which I have been happily running for 4+ years without any issues.

comment 10y ago · link · parent

@7 I see this point repeated often without further clarification, what exactly is more buggy?

I can tell you from personal experience that with a reasonably modern Linux distro, my laptop works out of the box without any problems and I've not experienced any significant system-level bugs in a long time.

Meanwhile in Windows, my sound doesn't work at all when I wake up the laptop from sleep, Windows update tries to override the GPU driver with an older version from Windows update and every time I have > 10 Chrome tabs open, the whole system locks up regularly. Not to mention that the Windows registry is still a complete mess and trying to COMPLETELY remove a piece of software is an impossible task.

I am not saying Linux is perfect and yes, Windows works better in the games department, but I am not sure I'll call Windows less buggy.

comment 10y ago · link · parent

I am using SoftMaker Office 2016, (http://www.softmaker.com/en/softmaker-office-linux) on my Linux box and it works great for collaborating on MS Office documents - preserves formatting and everything else without a problem.

comment 10y ago · link · parent

For a broader overview of Stuxnet and the surrounding situation, I would recommend the book "Countdown to Zero Day" - http://www.amazon.com/gp/product/0770436196
1
7374757677