News for hackers. Stuff that matters.

ryanmk

Re:The cure for procrastination? Forgive yourself on Wednesday September 23, 2015 @06:11PM (#10268606)
I've plugged this before, but this is something that has really, actually, worked for me: beeminder.com
Dude sounds like he's stuck in his own head.
Re:Yet Another Language Speed Test – Counting Primes on Saturday July 04, 2015 @01:40PM (#9830874)
I tried using locals, and there was no change to the time. Using a boolean return value for isPrime shaved off two seconds.
Re:Yet Another Language Speed Test – Counting Primes on Saturday July 04, 2015 @01:30PM (#9830836)
Thanks, using % did the trick.
Re:Yet Another Language Speed Test – Counting Primes on Saturday July 04, 2015 @01:23AM (#9829329)
I've placed my port here: https://gist.github.com/anonymous/ce176d7ab4f6b7b1ba91

If you see anything wrong with it, or odd, feel free to share.

I'm still investigating what is happening to make the run so slow, so if you can find something wrong in my code, that would help.

Re:Yet Another Language Speed Test – Counting Primes on Friday July 03, 2015 @11:23PM (#9829015)
It would be nice to see the numbers, in addition to the graph.

I did a straight port of C to lua, and ran it with luajit.

The C code ran in 49.901s.

The luajit code ran in 14m16.547s.

C code was compiled with -02 -std=c11 -lm (version 4.8.1, mingw).

luajit.exe was 2.0.3, static build, using VS2012 x64

Re:Can C++ become your new scripting language? on Sunday May 17, 2015 @04:46PM (#9561641)
I use lua for most scripting. A big reason for this is that the entire lua environment is in lua.exe. This allows for me to distribute scripts easily without having to include a C++ installer with them.
Re:Ask HN: Which book are you reading these days? on Thursday April 09, 2015 @03:20PM (#9350264)
Love Ted Chiang!
Isn't that called a "paycheck"?
Re:Io language on Saturday January 10, 2015 @06:13PM (#8868298)
I agree with the parent. Upon encountering the page, my first feeling is that this is one of THOSE landing pages.

Of course, I know this is just me bringing my biases to the thing, but that's the way it is.

Re:Profile of Ted Chiang: The Perfectionist on Monday January 05, 2015 @10:02AM (#8839089)
I'd like to see what his take would be on a Groundhog's Day scenario.
Re:Announcing LTS Haskell 1.0 on Sunday January 04, 2015 @09:35AM (#8834491)
The website doesn't say what LTS haskell is. A curated set of packages? Of what?
Re:Ask HN: How do you stay motivated to work on side projects? on Saturday December 27, 2014 @02:20AM (#8801956)
I use Beeminder.com to stay motivated. They have githun integration, which helps.
Bandwagon hopping is a Good Thing.

Furthermore, if you continue to bring something to the bandwagon, people will continue asking you to join them.

Re:NASA: We're sending humans to Mars on Tuesday December 02, 2014 @05:02PM (#8690262)
You don't think they'll put humans on Mars within this century? Really? That's not a conservative statement. A conservative statement is, yea we'll probably get to Mars this century, but maybe not in the next 20 years.
Re:The State of JavaScript in 2015 on Sunday November 30, 2014 @11:29PM (#8679506)
I'm glad I read this article. I just started experimenting with javascript for web development, and I've encountered so many Named Swords.
Re:Introducing Spider 0.1 on Friday November 28, 2014 @12:25PM (#8671538)
I'm intrigued by your comment that being forced to do a lot with a little is powerful. Do you have any arguments or evidence for that you could point me to?
Re:An FPGA Is an Impoverished Accelerator on Wednesday November 26, 2014 @11:47PM (#8666025)
It sounds like he doesn't think the level of abstraction offered is high enough. If you are using an FPGA as a general purpose device, and not for prototyping, then a higher level of abstraction would be helpful. Otherwise, if you are prototyping, you may want a lower level of abstraction that may offer a closer approximation to your end goal.
Re:Ask HN: Can we talk about Linux vs. OS/X? on Sunday November 23, 2014 @04:09PM (#8649934)
I see Android as the future of the linux desktop.
Re:RTX2010 – Radiation-hardened stack machine microprocessor on Saturday November 15, 2014 @03:02PM (#8612498)
There's also GreenArrays GA144, which has 144 forth machines on a single microprocessor.

http://www.greenarraychips.com/

Re:2014 Fields Medals announced on Wednesday August 13, 2014 @08:34AM (#8172540)
So she just appeared in her current form out of nowhere with no causes and conditions?
See this study from Johns Hopkins:

http://www.heffter.org/research-jhus.htm

takeaway: Psilocybin may have a long-term anxiolytic effect.

Re:Raspberry Pi Compute Module on Monday April 07, 2014 @01:06PM (#7547755)
Can other computer-on-modules in a SODIMM package be used in the Compute Module IO Board they are developing?

I've searched online, and I think the boards that the SODIMM modules are plugged-in to are called "base-boards" or "carrier-boards". In general, are these kinds of boards generic in nature, so that you can mix-and-match modules with different carrier-boards, as long as they all use the SODIMM package?