HNHacker News
TopNewBestAskShowJobs

utx00

205 karma · joined March 4, 2008

test 1234 hhh
submissionscomments
utx00··on Why are you people defending Apple?
until enough producers move.
utx00··on Ask HN: Burned out. How can I make the most of a sabbatical leave?
can you motivate yourself to finish something small? say something that will take you one week? if nothing comes to mind, can you say wake up at 6am everyday for a week? or walk 2 miles everyday for a week? or cook for yourself, as best you can, "interesting" dinners? just for a week.

after that week is over, maybe report back?

i would not make any life changing decisions just now.

utx00··on I'm a pregnant hacker. Please review my side project.
pretty!
utx00··on MongoDB, Data Durability and Improvements coming in 1.8
thanks for your feedback.

so far we're going with couch and haven't experienced this. the best part of course is that we can add items to documents on the fly whilst keeping the existing test data! this is major for us. we can go back to testing right away. with MySQL the changes were so major that it was better just dumping and recreating from scratch (we are using django) and this wasn't exactly fast. django has a project "south" that would help with this, but we're eventually deploying to oracle and cannot rely on it or have the time to extend it to properly work with oracle.

utx00··on MongoDB, Data Durability and Improvements coming in 1.8
what about couchdb?
utx00··on Ask HN: Is 36 too late to start into programming?
no, no es tarde. pero comienza ya. te recomendaria python o ruby son mas faciles, disponibles y los dos tienen amplas comunidades. suerte!
utx00··on Why I Switched to Git From Mercurial
so i tried it for a couple of days, and the speed was the thing that impressed me the most actually. the rest is not that dissimilar, but i didn't dislike it as much as i thought i would :) - our workflow assumes mq already so a git add is a qnew, or qref, a git diff --cache is a qdiff, a git diff is an hg diff ... so on. most commits i make are usually a qfinish, which is comparable to a git commit (no -a).

how do you manage patch queues in git? we need them because we are constantly backporting to different versions of our app. branches will mean n merges for n versions. stacked git? or is there a git native way to manage the same?

what about something like tortoisehg? gitk is pretty crude in comparison.

i assume one can glue a diff/merge tool like meld. is the experience similar when resolving conflicts?

thanks for any feedback.

utx00··on Why I Switched to Git From Mercurial
i guess i will have to try git to be sure, but i really don't see a difference here. usually if i'm going to try something drastic, i try it on a clone that i know i can throw away.
utx00··on Why I Switched to Git From Mercurial
the patches directory that mq uses can be put under hg control.

i don't know about git reset, but everything you mentioned before can be done with mercurial (mq, histedit, ...)

utx00··on In praise of git’s index
if you have topic branches in hg you can also strip them provided you didn't push them to a public repo.
utx00··on In praise of git’s index
so if you track project state with branches (for say versions) and you need to apply 'new feature' to all this n branches, does that mean n merges for your team? not for ours.

in all fairness, there is stacked git. go crazy.

utx00··on In praise of git’s index
one wonders how this works then, if Hg branches are so sub-optimal: http://hg-git.github.com/

you can re-write history in mercurial too - with the same obvious implications for both.

one thing that did go away with Hg was the need to merge unfamiliar code because someone upstream did a git-rebase.

utx00··on In praise of git’s index
one can do hte exact same thing with hg queues.
utx00··on A new approach to China
go google. that does it, i just put an order for a google phone.
utx00··on HN Help: I'm lost
first thing is to stop ruminating. even if your mind wants to. even if it feels like that is the best way out of this situation. so stop now. don't look for explanations, don't try to understand. that would make it worse. the answers are not in what we accomplish, or in what we think we need to do or be (great doctor vs. lowly coder) - all dangerous fabrications.

watch this video: http://video.google.com/videoplay?docid=-1424079446171087119..., it's only :45 or so.

read these - take the day off and read them if you need to:

http://www.amazon.com/Full-Catastrophe-Living-Wisdom-Illness...

http://www.amazon.com/Mindful-Way-through-Depression-Unhappi...

utx00··on Ask HN: Please name two of your most favorite books.
all the kings men - warren

the floating opera - barth

utx00··on Nickb missing?
unsubscribe
utx00··on _why is no more
why would he not be ok?!?! lets put this in perspective.
utx00··on Why There Are No Girls In San Francisco
dang! downvoted by a virgin.
utx00··on Why There Are No Girls In San Francisco
how could there be no women in SF? get ready for fun.
utx00··on Still using java? Lombok can make you more productive
retarded is too harsh :) however the same can be accomplished through macros in a way that is better integrated with the language (when debugging lombok generated code lombok tags are not of much use i would imagine, forcing one to understand the generated code).

something like:

(defdata mountain name :setter :getter latitude :getter etc ...)

might not be too hard to implement on top of clos (or on top of defstruct - but clos has the advantage of already having flexible accessors) not sure about clojure.

utx00··on The End of a DBMS Era (Might be Upon Us)
you could do an in between: http://bret.appspot.com/entry/how-friendfeed-uses-mysql
utx00··on Sacrifice your health for your startup
ha! who said you couldn't get your dinner recipe from HN. we're trying this tonight. thanks!
utx00··on Books About Parsing
or just use sexps ... and you are done.
utx00··on Neil Armstrong and the missing "a".
can you share which interview was this? want to tivo it.
utx00··on Thumbs Down for Clojure
this comment reminded me of this: http://philip.greenspun.com/bboard/q-and-a-fetch-msg?msg_id=...
utx00··on Critiquing Clojure
it is definitely more verbose and uglier. but in practice it does not seem to be a problem. for instance, comparing to arc, if you had notfn for ~, and testify, you could write all as:

  (defun all (test seq)
    (funcall (notfn #'some) (complement (testify test)) seq))
doesn't seem that bad.
utx00··on Critiquing Clojure
in cl, you can use defsetf to almost do the same. as a matter of fact, taking a cue from arc, you can write a macro like:

  (defmacro deftable (name)
    `(progn
       (defparameter ,name (make-hash-table))
       (defun ,name (k)
         (gethash k ,name))
       (defsetf ,name (k) (v)
         `(setf (gethash ,k ,',name) ,v))))
now you can do: (deftable client), which creates the hashtable, and then

(client 'phone) will retrieve the value,

(setf (client 'phone) '4444444) will set the value.

utx00··on Ants: locks vs stm
right, but i'm guessing his (and mine) trouble handling that loop has more to do with loop that it does with us - at least that's what i tell myself so please be gentle
utx00··on Ants: locks vs stm
talk about loop abuse:

     (flet ((make-random-move (rankf)
                     (loop for place in places
                           for rank = (funcall rankf place)
                           collect (cons place rank) into ranks
                           sum rank into ranks-total
                           finally (loop with r = (if (zerop ranks-total) -1
                                                    (random ranks-total))
                                         for (place . rank) in (shuffle ranks)
                                         sum rank into current-ranks-total
                                         when (< r current-ranks-total)
                                         do (cond ((and (eq place ahead) (move ant)))
                                                  ((eq place ahead-left)
                                                   (turn ant -1))
                                                  ((eq place ahead-right)
                                                   (turn ant +1)))))))
              (if (ant-food ant)
Page 1 of 6Next →