Better HN
topnewbestaskshowjobs
Log inSign up

qubitcoder

1,648 karma · joined Jan 9, 2014 (12y ago) · 325 submissions

[ my public key: https://keybase.io/qubitcoder; my proof: https://keybase.io/qubitcoder/sigs/JVmfDS68RWeEMeqKdcW6ybbYTtRdh_9BV5NBocPaZ70 ]
Submissions

271.

Audi's Mission to the Moon(microsites.audi.com ↗)

2 points · by qubitcoder · 10y ago · discuss

272.

Microsoft is pulling the plug on Internet Explorer 8, 9, and 10 next Tuesday(theverge.com ↗)

1 points · by qubitcoder · 10y ago · 1 comment

273.

Physicists Hope to Be Wrong About the Higgs Boson(wired.com ↗)

51 points · by qubitcoder · 10y ago · 17 comments

274.

Haskell for fast, concurrent, robust service (Twitter tech talk)(youtu.be ↗)

4 points · by qubitcoder · 11y ago · 1 comment

275.

Getting Started with Elixir(community.nitrous.io ↗)

5 points · by qubitcoder · 11y ago · discuss

276.

‘Yelp for People’ App Founder Says Peeple Won’t Be ‘Shamed into Submission’(nytimes.com ↗)

8 points · by qubitcoder · 11y ago · 3 comments

comment 11y ago · link · parent

For iOS HN apps, my current preference is Akepa owing to its features and attention to detail--including comment collapsing, bookmarks, history, Readability integration, and replies (using it now for this comment). The performance is quite snappy as well since it uses native components instead of a being a wrapper.

278.

Unit testing IO in Haskell(blog.pusher.com ↗)

1 points · by qubitcoder · 11y ago · discuss

279.

Antergos (Arch based distribution)(antergos.com ↗)

3 points · by qubitcoder · 11y ago · discuss

280.

Practical Haskell – Using Monads(seanhess.github.io ↗)

3 points · by qubitcoder · 11y ago · discuss

comment 11y ago · link · parent

FWIW, El Capitan lets you auto hide the top menu bar. Since I mostly use keyboard shortcuts anyway, I find the extra space to be quite nice.

282.

Switching from Ruby to Haskell (Podcast)(jobs.rubynow.com ↗)

1 points · by qubitcoder · 11y ago · discuss

283.

An Introduction to Recursion Schemes(patrickthomson.ghost.io ↗)

1 points · by qubitcoder · 11y ago · discuss

comment 11y ago · link · parent

Just out of curiosity, have you considered doing a clean install? Yosemite was unusable on my MacBook Pro Retina--visual artifacts, misaligned GUI elements, and frequent crashes. I participated in the beta test program, so I suppose this left behind a lot of cruft on my system. A clean install eliminated all these issues.

comment 11y ago · link · parent

Similar story here. I find I'm able to accomplish tasks which would otherwise be beyond my skill and intelligence. For example, even though C was the first language I learned, I can't imagine writing a parser in C after discovering the simplicity & readability of monadic parsing in Haskell. [1] Just compare that page with the parser/lexer for the Jq tool on the HN homepage (written in C).

A few months ago, I needed to retrieve JSON data from a list containing dozens of URLs. Fortunately, the "async" package handles this beautifully: [2]

  pages <- mapConcurrently getURL ["url1", "url2", "url3",...]
Once you learn the basic concepts of Haskell and get over the hump, you’re able do things with ease that would otherwise take many years to master in C++ [3]. Even the most advanced features of the language follow the same underlying principles & syntax.

My advice to those wanting to learn Haskell is simply not to give up. Keep coming back to it. Practice. Read other’s code. Over time, things will begin to click. And once they do, you’ll wonder why you struggled so much in the first place.

[1] https://www.fpcomplete.com/school/starting-with-haskell/libr...

[2] https://hackage.haskell.org/package/async-2.0.2/docs/Control...

[3] http://chimera.labs.oreilly.com/books/1230000000929/index.ht...

286.

How I became productive in Haskell(mechanical-elephant.com ↗)

3 points · by qubitcoder · 11y ago · discuss

comment 11y ago · link · parent

Google also uses Haskell for Ganeti, their cluster-based virtualization management software. [0]

Why does Ganeti use Haskell?

Ganeti first used Haskell as an experiment when we needed a compiled language that could perform fast computations on cluster metadata. Eventually, we found that Haskell had advantages in its type safety that made it easy for us to develop better code with fewer common errors without having to write extensive “type-specific” unit tests. At this point, we decided to expand our use of Haskell.

As of January 2014, we plan to convert only “infrastructural” code (job queue, locking) that was already very complicated in Python to Haskell. We’ll continue to use Python for Logical Units, backend RPCs, and hypervisor, storage, and networking implementations.

There are two main reasons why Haskell constitutes a low barrier:

- Haskell doesn’t have any runtime dependency on the target systems.

- For setup, Haskell only requires a development environment.

[0] https://code.google.com/p/ganeti/wiki/GanetiFAQ#Why_does_Gan...

288.

The Expression Problem and Tables(joelburget.com ↗)

42 points · by qubitcoder · 11y ago · 19 comments

289.

The Third Age of Computing Is Dependently Typed(joelburget.com ↗)

3 points · by qubitcoder · 11y ago · discuss

comment 11y ago · link · parent

Yes, I'd wager that regular Vim users employ a variety of plugins. Vim is a powerful editor out of the box, but it falls short of many IDE capabilities without leveraging plugins.

There are many packages on GitHub that will install and configure Vim for you with a variety of useful plugins and keyboard shortcuts out of the box--so after the installation is complete, you'll have a fully fledged Vim IDE ready to use.

One of my favorites is Joe Nelson's setup [0]. It's specific to Haskell development, but even if that's not relevant to your use-case, it's a very sleek demonstration of what Vim can do as an IDE--and a good starting point for customizing your setup (i.e. a very clean .vimrc file for inspiration). I use it basically as-is for my default Vim config and as a full IDE. Check out the keyboard shortcuts for quickly switching buffers, Git integration, and the shortcuts for visualizing project structure & quickly navigating files.

[0] https://github.com/begriffs/haskell-vim-now

291.

High-Performance Log Parsing in Haskell: Part One(blog.safaribooksonline.com ↗)

61 points · by qubitcoder · 11y ago · 16 comments

292.

I Don't Get Functional Programming(bikeshed.fm ↗)

2 points · by qubitcoder · 11y ago · discuss

comment 11y ago · link · parent

There's a nice writeup describing the simplicity of Haskell syntax. [0]

  Haskell has 21 reserved keywords that cannot be used 
  as names for values or types. This is a relatively low
  number (Erlang has 28, OCaml has 48, Java has 50, C++ 
  has 63.

In particular, some of the operators you mention represent such fundamental and common tasks that it makes sense to have a shortened form. I'm in agreement that descriptive names are preferable in general, but not always. Haskell syntax is quite simple and predictable (I say that as a former Rubyist); it only appears strange in the beginning because there are so many new concepts to learn.

[0] https://github.com/kqr/gists/blob/master/articles/simple-syn...

comment 11y ago · link · parent

Here's a example from the New York Times--Haskell in the Newsroom.

Eric Hinton (whose first programming language was Haskell) gave a phenomenal talk about the cultural shift to Haskell at NYT, and the interesting ways in which they use it.

Some examples include Fashion Week image processing to analyze which colors are in style, building composite images by hue (and the massive speedups they get from parallel processing), book review analysis, high-speed video processing, and so on.

Worth checking out just to gain a newcomer's perspective to programming, what they were able to accomplish with Haskell, and how they integrated it into their existing environment.

[0] http://www.infoq.com/presentations/haskell-newsroom-nyt

EDIT: Clarity.

comment 11y ago · link · parent

Consider Haskell. It's about as anti-boilerplate as they come. And with automatic type inference.

comment 11y ago · link · parent

I've made a few attempts to use Atom on a daily basis. Unfortunately, I continued to experience crashes with the linter, autocomplete, and Haskell-related plugins--or the plugins would work, only to break during the next Atom update. It also wasn't possible to use my favorite ligature-based font without breaking the cursor position. Not to mention the rendering/performance issues.

There's a lot to admire about Atom. But Sublime is stable and silky smooth. And I continue to use Vim happily every day without issue, despite its ~25 year age.

comment 11y ago · link · parent

At least for local usage, the 'trash' command-line utility is worth considering [1]. I use it on my Mac/Linux box. As described by NPM, trash is a:

"Cross-platform command-line app for moving files and directories to the trash - A safer alternative to rm"

[1] https://www.npmjs.com/package/trash

comment 11y ago · link · parent

When I first switched to OS X, Finder seemed like it lacked some basic features. But like much of OS X, once you learn the keyboard shortcuts, the real power shines through. There's a helpful free app for discovering them [1]. After holding the Command key for a few seconds, an overlay will appear with all the shortcuts for your current app.

I use BetterSnapTool [2] for window management. You can drag a window to some edge for quick resize/snap options, similar to Windows.

Personally, I use Vim-inspired bindings to move windows around quickly.

E.g. Command-Shift-J snaps a window to the left half; Command-Shift-K to the right. And Command-Shift-M to fully maximize a window. To snap windows to each of the four corners, I use the same pattern followed by 1,2 or 3,4. There’s lots of useful shortcuts you can configure, like sending windows back and forth between two monitors. Or just moving the mouse to reposition a window--or resize it--by holding down some key. I believe you can also customize the behavior when double-clicking the title bar.

As a user of i3/Xmonad on linux, this setup works well for me on OS X; I rarely use the track-pad to move windows around. And the iTerm hot-key shortcut toggles a popup terminal on the top right corner of my screen (or wherever you like).

[1] http://www.mediaatelier.com/CheatSheet/ [2] https://itunes.apple.com/us/app/bettersnaptool/id417375580?m...

comment 11y ago · link · parent

Keep in mind that the taxi situation is very different in Germany. As an American who lived and worked in Germany for a couple years, the taxi service was generally fantastic. Professional and courteous drivers, usually an impeccably maintained black Mercedes-Benzes, and a digital readout of the current fare on the rear-view mirror. And this was 7 years ago. Upon landing in Atlanta, I'd regularly step into a smelly, old van--with a driver who spoke little English and zero knowledge of the city, requiring GPS entry before departing--only to careen haphazardly down the highway. The contrast was rather stark.

As a driving enthusiast, driving in German was a pleasure (minus the traffic). Being able to cruise at 140 mph on unrestricted sections en route to Darmstadt, and feel safe doing so, was wonderful. Then again, obtaining a driver's license in Germany is substantially more difficult, costly, and time-consuming. Vehicle maintenance requirements are likewise more stringent (e.g. mandatory winter tires). Given the different driving environment, this ruling is not surprising in light of Uber's lackadaisical approach (I say that as a fan of Uber's service in the US, not their behavior).

Whereas in much of the US, you can cruise around a parking lot with an instructor, and walk away with a drivers license. It's like the wild west by comparison. Uber is faster, safer, and cheaper than the abysmal service in most US cities; but this isn't universally true. The situation in Western Europe is mostly superior to what you'd find in the US; ditto for Japan and South Korea.

EDIT: Clarity.

1
7891011