HNHacker News
TopNewBestAskShowJobs

zastrowm

1,048 karma · joined October 30, 2013

submissionscomments
zastrowm··on Common Language Server Protocol
Well it's nice to know there's at least some 3rd party support listed:

> the protocol has been adopted by Codenvy, who have added it to the next generation Eclipse IDE, Eclipse Che, as well as by Red Hat, who are working to publish a standalone language server for Java which can be consumed by any tool that utilizes the protocol.

> ... communities for programming languages like OmniSharp (C#), JSON, C++, xText, JavaFX, and R have made commitments to release language servers for their languages in the future.

Obviously we'll see if it actually happens, but at least other's are looking to support it.

zastrowm··on DeepText: Facebook's text understanding engine
I don't use facebook, but couldn't that also be an optimization? Like don't send the user email notifications if they're already on the site where they can see the # of notifications?
zastrowm··on Ask HN: Tabs or Spaces?
Spaces. A single character shouldn't expand to look like multiple characters.
zastrowm··on Google I/O 2016 Live Keynote
FYI, some phones actually have this (the Nexus 6 for example). IIRC, not all phones are always listening because of battery concerns, but some phones have chips specifically for listening to "hot words"
zastrowm··on Why Is No One Writing Language Runtimes?
In the CLR/C# for example, List<int> is a distinct type from List<bool>. At runtime, when you create List<int>, the CLR will create a new type based on List<T> that is specialized for int. For List<bool>, a new type based on List<T> is specialized for bool. Then at runtime, you can test variable (if (untypedObj is List<int>)) because there are distinct types for each closed generic type.

In java, the compiler would instead (I'm simplifying here), replace List<int> and List<bool> with List<object>, and at runtime, you wouldn't be able to tell a List<int> from List<bool> because their types were "erased" and became List<object>.

zastrowm··on Android N’s freeform window mode
I'd imagine that the "one web browser window, one calculator, one instance of every app" is because currently there's not too much need for multiple instances. After a windowing-system is in place, I'd expect (hope?) that Android/developers would begin to add support for multiple instances.
zastrowm··on Why do Windows functions begin with a pointless MOV EDI, EDI instruction? (2011)
Some of the variants of the links are broken, acknowledged via blog post: https://blogs.msdn.microsoft.com/oldnewthing/20160118-01/?p=...
zastrowm··on Ask HN: What's the most elegant piece of code you've seen?
You can set the github tab size via query parameter [1]. The Doom 3 code formats quite nicely then [2].

[1]: http://stackoverflow.com/questions/8833953/how-to-change-tab...

[2]: https://github.com/id-Software/DOOM-3/blob/master/neo/game/a...

zastrowm··on A defense of C's null-terminated strings
> But for example Java, C# and Go (slices) substring doesn't copy data.

If you're stating that C# Substring doesn't copy the string, that is incorrect; .NET always makes a copy: http://stackoverflow.com/questions/6742923/if-strings-are-im...

zastrowm··on The Fall and Rise of SVG
To be clear, the entire quote is:

  A frequently asked question is: Why doesn't Avalon just use SVG? On the face of it, it seems strange to invent a new way of representing vector graphics in markup when a standard already exists. However, the principal advantage of these shape classes is that they have been designed to integrate into the Avalon programming model. The vector drawing elements derive from the same FrameworkElement base class as all other XAML elements, and follow the same naming conventions. SVG has its own set of conventions for element and attribute names that is at odds with the existing .NET Framework class library. Furthermore, SVG elements were not designed to fit into the Avalon object model. By not using SVG, Avalon ensures that vector graphics can be mixed in with any other kind of markup in your XAML, and can take advantage of all of the same layout facilities. (Note that in the version of the Longhorn SDK documentation released at the 2003 PDC, the XAML elements used for vector drawing are sometimes referred to collectively as WVG (Windows Vector Graphics). However, Microsoft is no longer using this name, because it implies, incorrectly, that these elements are somehow distinct from all of the other elements supported by Avalon.)
Which is a lot more than just "SVG has its own set of conventions for element and attribute names that is at odds with the existing .NET Framework class library.".
zastrowm··on Environment Variables and Path in Windows 10
Raymond Chen article for anyone that is interested: http://blogs.msdn.com/b/oldnewthing/archive/2015/09/15/10641...
zastrowm··on Chrome will begin pausing many Flash ads by default on September 1
Disabling all plugins by default is a much better experience, especially for ads with sound. You can also opt-out the PDF viewer out of the click-to-play by visiting chrome://plugins/ and always allowing.
zastrowm··on The mail you want, not the spam you don’t
Kind of funny that they release this after a week with 2 articles of people complaining about it on HN.

But I would venture a guess that it's been in the works for a while.

zastrowm··on The state of Web Components
It's finally nice to hear about Web Components again. I remember when they started Polymer you heard how Web Components were the future, and then they just dropped off the radar.

Good to know that all the major vendors are continuing to develop them though.

zastrowm··on GitFlow considered harmful
It allows builds off of that branch, so you can get test feedback etc. It also acts as sort of a backup or a sync if you switch machines.
zastrowm··on Using Chakra for Scripting Applications Across Windows 10
All of these apis seem to be exposed only when hosting the Chakra engine. They even call out the fact that it's not for in browser:

> However with JavaScript’s increasing popularity in beyond-the-browser scenarios, developers have been requesting to host the Chakra engine outside the browser to enable JavaScript programmability in their native/managed applications across the client and the server.

zastrowm··on Introducing .NET Core
I believe that they already have a solution and have already used it[1].

> This is the first release from Microsoft that uses Security Updates for .NET NuGet Libraries Support. This feature enables Microsoft to update app-deployed .NET NuGet libraries, for machines with the .NET Framework 4.5.1 or later version installed. This security bulletin was released on 10/14/2014 as part of the monthly “patch Tuesday”.

[1]: http://blogs.msdn.com/b/dotnet/archive/2014/10/28/asp-net-mv...

zastrowm··on Introducing .NET Core
One of the primary problems with this is generics (java/JVM uses type erasure, CLR/C# keeps type information) and value types (CLR/C# has them, JVM does not); That's why you can implement the JVM on the CLR (see IKVM.NET[1]), but not the other way around.

[1]: http://en.wikipedia.org/wiki/IKVM.NET

zastrowm··on The State of JavaScript in 2015
Keep in mind that this would require a port of WPF, which is not open source.
zastrowm··on Optifine dev on performance problems in Minecraft 1.8
personZ mentions [1] escape analysis [2] which is kind of similar.

[1] https://news.ycombinator.com/item?id=8485522

[2] http://stackoverflow.com/questions/8222561/escape-analysis-i...

zastrowm··on Optifine dev on performance problems in Minecraft 1.8
In C#, you can kind of do this with stackalloc and fixed arrays, but it is still not as ideal as could be.
zastrowm··on Nexus 9
The price is $400 [1], in case anyone else was wondering:

> Google’s Nexus 9 goes up for pre-order on October 17th, and should hit the shelves on November 3rd. The 16GB model will go for $400, the 32GB for $480, and a 32GB model with LTE built in will set you back $600.

[1]: http://techcrunch.com/2014/10/15/google-nexus-9/

zastrowm··on WebSharper: Make web apps in F#
I don't really think requiring commercial licensing for closed source projects is really a con. Seems like a logical way to make money, yet still allow open source projects to benefit.
zastrowm··on Microsoft unveils Windows 10 system with Start Menu
I don't understand the Apple comparison. Do iOS apps run on OS-X?

The fact that they're consolidating the console, desktop, and tablet/phone OSs is the impressive accomplishment, not the phone/tablet consolidation.

As for consoles, a few years ago, consoles were a whole different beast from what they are now, so it wouldn't have made much sense to have the OS the same.

zastrowm··on Microsoft Will Soon Bring Back The Start Menu In Windows 8.1
I'd hope they take more influence from the write-up, however. I like that they'll allow Windowed apps, but their current implementation now looks like they crammed together Metro and Windows 7 without any polish. The write-up, however, has a nice cohesive experience. Of course, Microsoft's startup menu is probably early alpha, so it's a moot point.
zastrowm··on Google I/O 2014
The usual pricing: $900, $300 for students.

When you sign up you have to have a Google Wallet account so that your ticket is automatically purchased if you're chosen.

zastrowm··on Make the Type System Do the Work
I think the examples are just too trivial (or in this case, aren't extended to a greater library). Where they really come in handy is if you're using the types all over the place. If I were to create a Degrees class (with Celsius and Fahrenheit) just for representing it in a UI, I'd call it crazy. But if I'm doing conversions all over the place or creating a library for others to use, I would think the plumbing is worth it. Of course, that's true for most "plumbing" in code.
zastrowm··on Everyone can now track down noisy tabs
It kind of seems that way. I was wondering the same thing so I tried out - sure enough, launching it in metro mode and it looks like what I expect ChromeOS would be (I don't actually have a device running ChromeOS), with an apps bar, a clock, and "start/apps" button.
zastrowm··on Scientist: Cats think you are just a big, stupid cat
Indeed; that's the point I was attempting to make (though not very well). As far as I have seen, cats aren't afraid of a specific species, nor do they "identify" exclusively with only one specific species. If they find a dog (or a cat) who they can befriend, they do. If they find a large enough animal that scares them (I have a very tall friend), they'll run like hell and hiss whenever the animal is near. I'm not sure if they see classify species as much as they do friend or foe.
zastrowm··on Scientist: Cats think you are just a big, stupid cat
Well, I can tell you that some cats will chase anything (usually anything smaller than themselves) and some cats will play with dogs as if they were a big brother. So while they may know that other animals are different from themselves, I'm not sure they recognize that they are a different species.
← PreviousPage 2 of 3Next →