News for hackers. Stuff that matters.

marchelzo

Re:Show HN: Figure is a daily logic puzzle game on Sunday August 07, 2022 @02:41PM (#32378651)
They were :) Before I took the time to write a vim syntax file I just used the Rust one with a couple of tweaks and the syntax was close enough that it sort of worked.
Re:Show HN: Figure is a daily logic puzzle game on Sunday August 07, 2022 @11:19AM (#32377146)
Neat game. I was bored so I wrote a little brute-force solver in my toy language. Takes almost a minute to solve today's puzzle though: http://paste.pr0.tips/hgs
Re:The cost of forsaking C on Wednesday October 05, 2016 @12:58PM (#12645603)
I agree completely. I couldn't believe it when he made that Frame struct and completely abused RAII just to execute some code at the beginning and end of a block. The only really big wins were the wrappers for writing to different memory locations, all of which could have been implemented in C using macros or inline functions.
Re:Universal.css on Monday May 23, 2016 @11:21AM (#11754418)
I'm not familiar with this concept. What are the benefits?
Re:ACM 2015 Technical Award Recipients on Thursday April 28, 2016 @06:07PM (#11592266)
Or as I've recently taken to calling it, the GNU+ACM Software System Award.
Re:Building a Better Custom Haskell Prelude on Friday April 08, 2016 @03:27PM (#11457206)
With `[a] -> Maybe a`, it's not so bad if you use `catMaybes` from Data.Maybe.

map transform . catMaybes . map safeHead

Re:Vis: A Vim-Like Text Editor on Thursday April 07, 2016 @12:17PM (#11448458)
What does B/E stand for?
"You are a married lady older than 32 who makes more than $52,000/year You're either a married, middle-aged lady ... or you use your phone like one."

19 year old male. The only apps that I have on their list are YouTube and Google Maps.

Presumably for the same reason that people prefer native applications on iOS / Android to using web applications in mobile browsers.

This approach allows you to tailor the controls and the display to the specific application, thus creating a more pleasant experience.

Have you tried using HN in lynx?

Re:Twitter Names Jack Dorsey Chief Executive on Monday October 05, 2015 @09:09PM (#10336175)
It counts characters rather than bytes. Maybe it's a GNU thing?

EDIT: It appears to be part of POSIX wc.

Re:The Use of Name Spaces in Plan 9 (1993) on Sunday July 05, 2015 @10:43AM (#9833712)
I got curious when you said they don't take themselves seriously. There are some pretty funny files in the /lib/ directory of their source tree. https://code.9front.org/hg/plan9front/file/0d00dd23c9db/lib/... for example.
Re:Gravity Kills Schrödinger's Cat on Saturday June 20, 2015 @02:20PM (#9750627)
AFAIK, the force of gravity propagates at light-speed, so every particle in the universe is not being acted upon by every other particle in the universe via gravity, because the distance between some particles is increasing faster than that due to the expansion of the universe.
Re:Diet that mimics fasting appears to slow aging on Thursday June 18, 2015 @06:15PM (#9741949)
Sorry- but you mean that you didn't eat anything at all for 23 days? And you felt energized?
I think something else that could have impacted their results is that for some people, the knowledge that they are being tested changes the way they think/perform quite drastically. When I sit at a desk and do menial work, I get restless and my productivity plummets. But if you tell me that I'm being assessed, and you give me a straightforward task, I will have no trouble focusing on it for at least an hour. Maybe treadmill desks help you stay on task, but at the same time inhibit your cognitive performance slightly.
Re:A simple UI framework for Rust on Tuesday May 19, 2015 @12:29PM (#9571278)
flexbox + viewport units have made this better.
Re:Why I Quit Coffee and How That's Been Working Out on Saturday May 02, 2015 @09:08AM (#9476906)
I don't drink coffee terribly frequently, but I'm still intrigued by this Dandy Blend drink... has anyone else tried it? Even for the samples, it costs $11.60 to have it shipped to eastern Canada, so I'm a little hesitant.
Re:JavaScript's world domination on Tuesday March 24, 2015 @05:18PM (#9259573)
What do you mean by "native operators like ? and if uses == and not ==="?
Re:Pi, PINs and Permutations on Thursday March 19, 2015 @11:11AM (#9232451)
6716 confirmed most secure 4-digit PIN.