HNHacker News
TopNewBestAskShowJobs

donut2d

207 karma · joined December 15, 2012

submissionscomments
donut2d··on Lisp and Haskell (2017)
I learned Haskell and then moved to OCaml and found it to be a much more practical language. Haven’t tried Lisp yet, but it’s quickly moving to the top of my list.
donut2d··on Plans for OCaml 4.08
I recently got into OCaml (and ReasonML) and wrote a blog post with my experiences. In it I recommend several resources for both languages and explain some stuff that wasn't obvious to me as a beginner:

http://donut2d.tumblr.com/post/171205516399/my-experiences-b...

But if nothing else, be sure to check out Real World OCaml[1]. It's pretty great and helped me out a lot getting started.

[1]: https://dev.realworldocaml.org

donut2d··on Plans for OCaml 4.08
Reason is just a dialect of OCaml and actually uses the BuckleScript[1] compiler, which before ReasonML, just took OCaml code and transpiling it to JavaScript. It's known for being super fast and generating fast and small JavaScript. But you can compile ReasonML to native binaries as well, not just JavaScript, using the BuckleScript compiler or others like jbuilder[2].

The advantage of having OCaml as the foundation is its excellent type system. It's very mature.

I'm relatively new to OCaml, just getting into it this year, but I've found that it forces me to write correct code first. I've been really impressed by it having come from the world of PHP/JavaScript/Swift and others.

Personally, I greatly prefer OCaml's syntax to Reason's. I find it much simpler, and less busy. But I know a lot of people are more comfortable with Reason's syntax. I definitely wouldn't call it "cleaner", though.

[1]: https://bucklescript.github.io [2]: https://jbuilder.readthedocs.io

donut2d··on Flexbox and Grids: your layout’s best friends
You've got a JetBrains IDE working with OCaml? What plugin are you using with which IDE? The only plugin[1] I've seen seems to be 7 years out of date.

[1]: https://plugins.jetbrains.com/plugin/4986-ocaml-support

donut2d··on How a CEO with Dyslexia and ADHD Runs His Company
I experience this, too!
donut2d··on Moral panic over fake news hides the real enemy – the digital giants
Examples?
donut2d··on Swift and the Legacy of Functional Programming
I used to find the first example more difficult to read until I learned Haskell. Now I find it much more explicit about what's happening.

In the first example, because I know what "map" means, I know that `Person.init` is applied to each name. And then I know that only the valid `Person`s are returned by the `filter` call.

In the second example, I have to understanding the unique logic of the loop block to get to the same conclusion.

donut2d··on “We have been experiencing a catastrophic DDoS attack”
I'm a one man operation keeping a master-slave setup with a manual failover and it's been pretty smooth sailing once I got it setup. Don't know how much more complex master-master would be.
donut2d··on Reducing Adobe Flash Usage in Firefox
I've seen issues in MS Edge with HLS on other services as well. Safari seems to have excellent HLS support. Haven't had any issues with Safari and Twitch.
donut2d··on Reducing Adobe Flash Usage in Firefox
Actually, Twitch already supports an HTML5 player[1]. I don't install Flash on my MacBook and just use Chrome when necessary. Twitch has been working without issue for a while now.

[1]: http://help.twitch.tv/customer/portal/articles/2477288

donut2d··on Learning to code as a 30-year-old kid with Apple’s Swift Playgrounds
Actually, Foundation is being ported to Linux and there are already quite a few third-party libraries out there. I am successfully writing cross-platform server-side applications in Swift.

https://github.com/open-swift https://github.com/VeniceX https://github.com/Zewo

donut2d··on Google Fonts Redesigned
I recently ran into this. I was putting an SVG into an <img> tag and sized it with CSS. In every other browser, it worked as expected. The SVG filled the space and stretched to the set dimensions. In EDGE, the SVG appeared tiny at the top-left of the space the <img> took up. I could not figure out a way around it. Had to convert it to a PNG. It seems that it handles SVGs as background images just fine.
donut2d··on HTTPS for GitHub Pages
Let's Encrypt is a certificate authority and provides certificates and so it would be end-to-end. However, CloudFlare is not end-to-end unless the server already supports HTTPS.
donut2d··on Atom 1.8 and 1.9 beta
The thing that stops me from giving VS Code a real shot is its sad VIM mode.
donut2d··on Swift 3.0 Release Process
Version 3.0 is supposed to have a much stabler API going forward. They've been making a lot of changes even since 2.2 that really clean up the standard library.
donut2d··on Swift 3.0 Release Process
Check out VeniceX[1]. It provides Go-style concurrency. The same group[2] that is working on this is also working on a GCD based concurrency library but the name escapes me at this time.

[1]: https://github.com/VeniceX/Venice [2]: https://github.com/Zewo/Zewo

donut2d··on Swift 3.0 Release Process
I've built a few simple apps running on Linux that have worked great.

Check out Zewo[1]. They've been doing a lot of great work to make Swift 3.0 on the server work really well. Also, check out VeniceX[2] for concurrency and Open Swift[3] for cross project standards[3].

[1]: https://github.com/Zewo/Zewo/ [2]: https://github.com/VeniceX/Venice [3]: https://github.com/open-swift/docs

donut2d··on Swift 3.0 Release Process
> special case for the first argument passed to a method

Are you talking about the weirdness where the first argument doesn't require a label? If so, that decision has been made explicit in the last few dev snapshots of 3.0. Basically, if you don't want to require a label when call a function/method then it must be made explicit.

donut2d··on Swift 3.0 Release Process
I don't have much experience, but I think the VeniceX packages from Zewo answer the concurrency issues quite well.

https://github.com/VeniceX/Venice

donut2d··on Apple’s approach to privacy
While it's definitely plausible, and probably likely, I was looking for a source to the specific statement that Apple is "voluntarily giving the NSA zero-day vulnerabilities months before they get fixed". Are they giving them to the NSA? Is this why they're holding out on fixing them? Do we have evidence that this is their intention?
donut2d··on Apple’s approach to privacy
Source?
donut2d··on Subscription iPhones
Everything you wrote could have been said about the comment saying that it is a status symbol.
donut2d··on Free, three-month trial of Apple Music now available
On OS X, clicking the "Start listening now >" link opens up iTunes and you get a dialog saying that iTunes 12.2 is required for Apple Music. Clicking the "Upgrade" button brings you to Apple's download iTunes web page which only has 12.1.X available.

Guess 12.2 will come out later today. Updating to OS X 10.10.4 did not come with it.

donut2d··on Free, three-month trial of Apple Music now available
I just updated to 10.10.4 but it doesn't update iTunes to 12.2, the version required for Apple Music. Guess it'll be out later today.
donut2d··on Show HN: Universal Pause Button
You can do the same non-focused window dragging in OSX by holding down command. Actually, you can interact with the unfocused window when holding down command, click buttons, etc.
donut2d··on Racking Mac Pros
> People are having kernel panics and struggling to keep their machines running with current software.

A guy I work with has been running several heavily used hackintosh servers without issue. They have been very reliable and he's happily converted existing Linux servers to hackintosh. He's been doing this for a while and knows exactly what hardware to use.

donut2d··on Inside Popcorn Time, the Piracy Party Hollywood Can't Stop
Amazon Instant Video on PS3 and on my Vizio is pretty bad. Slow, unresponsive interface, very difficult to accurately skip ahead, not a great selection. Netflix does a great job interface wise, way better than Amazon Instant Video.
donut2d··on Ask HN: What are the most useful Chrome extensions?
I cannot figure out how to actually use Panda. There don't seem to be any signup or download/install links on that page.
donut2d··on Ask HN: What are the most useful Chrome extensions?
On Mac you can use a 3-finger tap on a world or select "Look Up In Dictionary" from the context menu to look it up in the dictionary and Wikipedia.
donut2d··on Show HN: Call emails, not phones
This site is vulnerable to Heartbleed: https://filippo.io/Heartbleed/#dialzoo.me
← PreviousPage 2 of 3Next →