News for hackers. Stuff that matters.

srathbun

Re:Plan to throw one away on Tuesday December 15, 2015 @12:34PM (#10739058)
Oh, and I found something new and fun for Marpa just now! It seems there's already the beginnings of a Python port (https://github.com/rns/libmarpa-bindings/blob/master/python/...) available.
Re:Plan to throw one away on Tuesday December 15, 2015 @10:11AM (#10738151)
Yes, yes they are. I've used them successfully for various parsing projects. And in fact Bison recently picked up GLR parsing to deal with multiple options (https://www.gnu.org/software/bison/manual/bison.html#General...).

But for something even more fun, I suggest you check out Marpa (https://jeffreykegler.github.io/Marpa-web-site/). It is, by far, the nicest parsing tool I have ever worked with. Being able to parse ANY BNF is huge. And the state tables for debugging! Knowing what possibilities you have makes things way easier. Especially for getting stuck in an ambiguous spot of your grammer. Finally, using ruby slippers to get out of a tight spot is hugely useful.

My one complaint is that the only implementation is in Perl. The core engine is written in C though, so someday I would like to convert the Perl into Python. I started several months ago, and haven't been able to get back to it. (https://github.com/srathbun/pyMarpa)

Re:Allwinner GPL violations on Thursday February 26, 2015 @11:36AM (#9113393)
That's a shame. I've used portableApps and it is a nice piece of software.
Re:How to become a programmer, or the art of Googling well on Friday October 24, 2014 @11:53AM (#8504235)
I would guess you aren't thinking in the language in question. You are translating your native language sentence into the appropriate english sentence on the fly. To use a programming analogy, it is like writing Haskell code as if it was C. Because you aren't thinking functionally, for every imperative step the C code in your head takes you have to translate it to some sort of functional analog.

You can get through it, but it is slower, and looks "funny" to a "native".

Re:It’s a 401(k) World on Thursday May 02, 2013 @04:43PM (#5647112)
Don't forget, in a 401(k) you put up 100% of the input funds, accept 100% of the risk, and only get some percentage of the profits.

See this frontline for details: http://www.pbs.org/wgbh/pages/frontline/retirement/world/401...

Re:Emacs setup for Python development on Thursday April 25, 2013 @08:33AM (#5606780)
I've got a vim setup hosted on github: https://github.com/srathbun/vim-plugins

It has Klen's python-mode plugin as a submodule: https://github.com/klen/python-mode

Python-mode provides awesome sause :) To get the repo, clone it recursively, or you won't have all the submodules. `git clone --recursive https://github.com/srathbun/vim-plugins.git ~/.vim`

Umm, there's this thing called hard/soft links...
Re:Ask HN: How should I evaluate a startup as I job hunt? on Friday August 10, 2012 @09:52AM (#4366126)
This is one thing I don't understand about people working in startups. You are in the business of you. The startup is in the business of the startup. Don't conflate the two.
Re:College was my biggest mistake on Friday August 10, 2012 @08:49AM (#4365897)
That's the way I looked at it. Get through it without a lot of debt and be a big fish in a little pond.

I'm smart enough to work on "hard" problems, but the stuff I do now is interesting, and while my gross income is lower, my net income is quite a bit higher.

Re:Peter Thiel's College Dropouts: How's That Working Out? on Thursday August 09, 2012 @01:21PM (#4362095)
I assumed this viewpoint was always understood. After all, business is easy.

If you at least break even, you are a going concern. Otherwise, business failure is inevitable.

That's an impressive bit of debugging.
Re:Closed for Business on Tuesday July 24, 2012 @01:21PM (#4286736)
Hmm, if all this is true, then how can any successful company have an open source software product? Bacula http://www.bacula.org/en/ is a great backup solution available fore free, with installers, yet they run a successful business.
Re:If this is NSFW, you should quit on Tuesday July 24, 2012 @08:52AM (#4285432)
ditto
Re:Zsh 5.0 released on Monday July 23, 2012 @09:40AM (#4280873)
I switched because of the massive control over the prompt.

I've currently got a three line prompt that includes info about my current repository: (git)[45afc8f02fef U master [origin/master ] ]

It lists type (git/hg) [checkout (U)pdated branch [remote branch] ]. It'll tell you how many branches different the remote is, what you are up to (staged), and colors.

That, better tab completion, and syntax highlighting of the command line are my killer features. I'm running a fork of the oh-my-zsh project, so you can see the features by grabbing a copy: https://github.com/srathbun/oh-my-zsh