News for hackers. Stuff that matters.

mrfabbri

Re:Lisp in Small Pieces: Table of Contents and Code on Thursday November 13, 2014 @09:34AM (#8601662)
1750 lines of fascinating C [encompassing an garbage collector and user-level implementations of user-defined types and structures, single-dispatch object-oriented "messaging", and generic "multimethods"]
Re:Lisp in Small Pieces: Table of Contents and Code on Thursday November 13, 2014 @06:08AM (#8600910)
Another interesting book on implementing Lisp (from a C perspective) is http://www.buildyourownlisp.com/.

Also, Lithp from fogus http://fogus.me/fun/lithp/ is a nice and brief exploration of implementing Lisp in Python and good example of literate programming.

Re:The Satoshi Nakamoto SourceForge account has been hacked on Tuesday September 09, 2014 @07:02AM (#8289533)
"It's Satoshi all the way down"
Re:Guacamole – HTML5 Clientless Remote Desktop on Tuesday August 12, 2014 @07:01AM (#8167287)
Another option could be transmission daemon web ui (forwarded over ssh)
Re:Vivek Wadha: "You learn little by writing code." on Sunday May 29, 2011 @04:10AM (#2596264)
Yep, you learn little by "writing code", you learn a lot by developing an ass kicking product/service in a very constrained environment, working with great people and pushing yourself to the limit. It's about the people, the [human] experience not just the code.
Re:Essential JavaScript design patterns on Tuesday March 01, 2011 @05:46PM (#2277585)
The code above doesn't provide a Singleton implementation, you can test it by using the expression mySingleton() == mySingleton() which should evaluate to true, while it evaluates to false. The problem is that the function returns an object literal but every time the function is called it creates a new one (i.e. {} == {} evaluates to false). You can find a sound definition of a Singleton in JavaScript which makes use of the (quite tricky) Lazy Function Definition here: http://stackoverflow.com/questions/1895635/javascript-single... . EDIT: Took a deeper look at the "book" and the singleton section and I think it somewhat misuses the term Singleton (or it uses in a "broad" sense): the example you reported provides some information hiding but no single instantiation restriction, which it is instead provided by the final example/iteration.
Re:The Next Big Language on Thursday January 27, 2011 @04:59AM (#2147294)
he definitely meant Rhino, as in Rhino on Rails http://steve-yegge.blogspot.com/2007/06/rhino-on-rails.html
Re:Readability and Naming Things on Thursday January 27, 2011 @01:42AM (#2146879)
for what concerns capital letters, from the essay I cited before [http://doc.cat-v.org/bell_labs/pikestyle]: "I eschew embedded capital letters in names; to my prose-oriented eyes, they are too awkward to read comfortably. They jangle like bad typography". As Pike acknowledges this is just a matter of taste.
Re:Readability and Naming Things on Wednesday January 26, 2011 @11:43AM (#2143815)
It reminds me of Rob Pike's "Notes on Programming in C", where Pike takes frequency into account as guideline, i.e. "A global variable rarely used may deserve a long name, maxphysaddr say" [http://doc.cat-v.org/bell_labs/pikestyle - Variable names paragraph - a nice and suggested read].
Re:Ask HN: What software do you use for your startup? on Sunday January 09, 2011 @12:21PM (#2085815)
- E-mail/calendar/docs: Google Apps standard edition

- Hosting: DreamHost

- Analytics: Google Analytics

- Project management: Email (lots of), Google Spreadsheets

- File-sharing: WebDAV, Dropbox

- Version control: Mercurial

- Backups: rsync

- Istant messaging: GTalk, Skype

Re:Apple Magic Trackpad on Wednesday July 28, 2010 @05:39AM (#1553958)
This mirrors my macbook setup [which I enjoy pretty much] with the external monitor: [mouse][keyobard][macbook trackpad] :-)
Re:Alter-ego - A Reactive AI Library on Sunday July 04, 2010 @04:39AM (#1485389)
It's a "weak AI" approach http://en.wikipedia.org/wiki/Weak_AI (i.e. demonstrate intelligence) but it's definitely fair to call this an AI library. Subsumption architecture http://en.wikipedia.org/wiki/Subsumption_architecture is the cognitive architecture underlying reactive AI.
Re:Google Buzz on Tuesday February 09, 2010 @03:18PM (#1113169)
Accessing http://m.google.com/app/buzz from an iPhone works whether or not you see the buzz label in gmail. You can use Firefox with the "User-Agent Switcher" add-on set on iPhone to try it out.