HNHacker News
TopNewBestAskShowJobs

idlewan

533 karma · joined October 29, 2012

submissionscomments
idlewan··on Nimrod for C programmers

  ..., not having unsigned types, as in Java, ...
Unsinged integer exist in Nimrod, you just have to

  import unsigned
when you use them.
idlewan··on Nimrod for C programmers

  - No curly braces around anything.
  
  - Whitespace seems to be important, just like python.
That might be a 'bug' for you, but that's a feature for most. At least for Python, Yaml, Coffeescript, Jade, Stylus and Nimrod users :)
idlewan··on Open Source's Cult Of Personality Is Dying – Thankfully
I'm not sure how projects would get started without BDFL. When the project gets enough uptake, more and more people pitch in, but at the beginning?

Anyone has an example of a popular good BDFL-free project that was this way from the start?

idlewan··on Why I won’t work for Google
"They have the world's best engineers at their disposal"

That's what they like telling the world. They probably employ a lot of smart people, because they can afford better work conditions and salaries.

However, they don't have the monopoly on smart engineers. You can't rank people from best to worse: everyone is different. You can certainly recognize that some people are smart, but there is more smart people outside of google than inside.

The notion that they "have the best" is ridiculous, because there is no such thing as "the best engineers".

I'd prefer saying they have optimized picking their engineers so that they have more chance of picking smart ones.

idlewan··on Web Framework Benchmarks Round 9
Disclaimer: I'm the author of Nawak, so I'm pretty excited about this.

The Nimrod programming language is finally featured for the db tests (at least on i7. Not sure what happened with ec2 and peak, as neither jester nor nawak seem to appears in the results).

It fares pretty well when the database is involved.

Look for the nawak micro-framework, in the top 10 both for fortunes:

http://www.techempower.com/benchmarks/#section=data-r9&hw=i7...

and updates:

http://www.techempower.com/benchmarks/#section=data-r9&hw=i7... )

And there is room to grow. That micro-framework will not be the best for the json or plaintext tests, but once the database needs to be involved, it is trivial to add more concurrency: firing up more workers (1-3meg each in RAM) acts as an effective database connection pool (1 database connection per worker).

edit: Why should you care? Nawak (https://github.com/idlewan/nawak) is a clean micro-framework:

  import nawak_mongrel, strutils

  get "/":
      return response("Hello World!")

  get "/user/@username/?":
      return response("Hello $1!" % url_params.username)
  
  run()
Benchmark implementation in 100 lines here: https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...
idlewan··on Web Framework Benchmarks round 9
Ah, I guess we posted at the same time.
idlewan··on A Motion-Sensing Keyboard
That doesn't mean they are allowed to forget using the right words. "Mechanical keyboard" is a very specific term for keyboards, it means that the switches used are of the 'CherryMX' type or similar. Scissor-switches are totally different, and do not fit the 'mechanical keyboard' description at all.
idlewan··on Build Tools – Make, no more
I'd expect all developers using make to know about this and never have this problem thanks to one simple thing: sticking with sensible names (no spaces, no brackets, no stars and other special characters in the name - hello underscores!).

It's an easy rule.

    Just like I prefer static strong typing...
You probably don't use any special chars or spaces for identifiers in whatever the language you're programming in. This is just applying a similar rule to the files of your project.
idlewan··on Whither print.css? A Rallying Cry for a Web That’s Fit to Print (2013)
I always go with firefox for printing a page, chromium always fucks up the kerning so much more.

I did notice that it was a lot worse on small font size, as the article did too, and it's really annoying: font are supposed to be scalable, why isn't there the same kerning errors on bigger sizes?

idlewan··on Boring Systems Build Badass Businesses
It all depends on your habits.

If you're satisfied with pure CSS and Javascript, the only thing you really need is a build tool for concatenation, minification and gzip. And livereload. And probably normalize.css.

-> I use uglifyjs and uglifycss

-> I use tiny-lr for livereload (https://www.npmjs.org/package/tiny-lr)

-> I use a Makefile, because it's the most simple to modify and adapt. When I have several targets of the same type (ex: build.min.js and debug.min.js), I use a yaml file with a custom python script for concatenation. See gulp.js and a thousand others for alternatives, YMMV (my Makefile nowadays: https://gist.github.com/idlewan/11012492). Magical bit for running make every time a file changes:

  watch:
      @inotifywait -m --exclude ".*\.swp|.*~" -e moved_to,close_write -r . | \
               while read; do make -s; done

To get more from just CSS, you need a CSS precompiler.

-> I use Stylus with the nib library (https://github.com/visionmedia/nib). Alternatives: LESS, SASS, and some others. You might want to add some grid and 'responsive shortcut' mixins on top.

  bigger($minwidth)
    query = "screen and (min-width: " + $minwidth + ")"
    @media query
      {block}

  // usage:
  .my-div
    font-size 20px
    +bigger(520px)
      font-size 30px

For webapp needs, you need a template library (some people prefer using a fat framework that does everything for them, e.g. Angular).

-> I use Jade (https://github.com/visionmedia/jade), because it runs on the server for Python, Node.js and soon Nimrod, and on the client with precompiled templates. Alternatives: Mustache and a thousand others, YMMV.

idlewan··on Boring Systems Build Badass Businesses
I don't understand this: with open-source, it doesn't matter that your CSS compiler has been abandoned: as long as you are satisfied with the current feature set, the code isn't going to disappear.

Stylus is only about 3.5 years old. But if all development were to stop now, I'll still be able to use it 5 years down the road. It probably helps that npm dependencies are pinned to a specific version.

C has been around for dozens of years, but you can consider its feature-set pretty much frozen. That's about the same thing as being satisfied with (CSS compiler X)'s feature set and sticking with it.

DSLs like the ones for CSS compilers are feature-complete fast enough. You don't need to wait 10 years for it.

idlewan··on Boring Systems Build Badass Businesses
For my front-end dev, it's really:

  (modify Stylus line,
  save).repeat(500)
vs :

  (modify Stylus line,
  save,
  focus terminal,
  run make (or whatever your build tool is),
  focus browser window,
  ctrl-r,
  focus editor window).repeat(500)
Of course, if you're not taking advantage of better tools than pure CSS, it's still:

  (modify CSS line,
  save,
  focus browser window,
  ctrl-r,
  focus editor window).repeat(550)
You don't NEED livereload, it's just a lot more comfortable.
idlewan··on It’s Time to Encrypt the Entire Internet
My mom can't install that herself, and wouldn't be able to find information on how to do it by browsing the freedombox website.

It's so obvious that the current freedombox website is targeted at computer geeks only and not general people. It is not 'super easy to install' if it's not granny-proved.

idlewan··on It’s Time to Encrypt the Entire Internet
There is good reason: it's bad for software businesses.

Even if you had a turnkey solution (it doesn't exist yet) to self-host emails & stuff, the companies selling it wouldn't be able to get good search engine rankings.

The web giants have no interest in solutions that don't require them to host your data (so they can serve you advertising or hosting plans). Even small shops are usually based around a Service As A Software Substitute (SaaS) business model and don't give a crap about you not depending on them when you start their application.

idlewan··on Boring Systems Build Badass Businesses
Any good static site generator can be learned in an hour.

You shouldn't search only for people who already know the static site generator you plan to use: any good developer that uses the CLI will have no problem using it.

idlewan··on Boring Systems Build Badass Businesses
In the case of some front-end tools, they are an absolute must.

When your CSS compiler takes care of all the stupid -webkit-/-moz-/... prefixes, allow you to define variables, mixins, use loops, you gain a great amount of power and your code is a lot cleaner.

When your build system integrates with livereload and make your changes appear instantly as you save, you gain speed and comfort.

That's major benefits for little to no inconvenience. I don't know about the necessity of CSS frameworks, styleguides or package managers, but some tools are just too good. It's not about the end result, it's about using better tools to get to it.

idlewan··on PredictionIO – open source machine learning for predictive features
It's not new for hacks.mozilla.org to display write-ups about external projects that relate to the web.
idlewan··on Comic Sans, meet Comic Neue
I see you have updated the page and chosen to release the font in the public domain.

That's really cool! Thanks!

idlewan··on Raspberry Pi Compute Module
I could see this being a really interesting way of having a slim and upgradable raspberry-pi-powered tablet.

Year after year, you could upgrade the SoC and memory while keeping your case+screen+screeniopcb+batterypcb+battery.

idlewan··on Comic Sans, meet Comic Neue
I would have appreciated if people in general chose a license before releasing font files.

Right now, I have no idea if I'm able to use the font for a website or for a mobile application. You may provide .woff and @font-face .css, but you don't explicitly say that redistribution through @font-face is allowed. I also have no idea if I can embed the font in a mobile application (phonegap/cordova) through @font-face.

That's what bugs me when designers provide 'for free' font files on a behance page, and what is also the case here: I am explicitly authorized to install the file locally, sometimes I am explicitly authorized to use it for 'commercial projects', and almost never am I explicitly allowed to redistribute it (which renders possible to use it on a website with @font-face or in a mobile or desktop app). As a developer, that sucks. That makes it seem like the 'free font' is for designers only (in the sense of: people that will only use the font to make an image, not a document, not a program).

These problems are of course already solved by the SIL open font license (http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web): with fonts released under this license, I am able to fix problems with the font (kerning etc...), I am able to redistribute it (@font-face, embed) AND the original designer is protected from people who want to sell the font ("The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves.").

If you want to sell the font, go ahead and do it! However, promoting it here as free font for a limited time to a crowd of people who have a good chance of being developers, well...

idlewan··on Oculus and the Rift are (probably) dead
Facts are not always available to us, especially when there is a lack of information / communication / when we discuss unprovable things like human motivations.

Who knows what the Oculus people are actually thinking? That's why we usually make hypothesis and conjectures: we can't prove it wrong or right, we still think something's fishy. I however agree that the tone of the article sounds too certain.

idlewan··on Oculus and the Rift are (probably) dead
There is no need to wait to question the motivations behind an annoucement. Why should there be a 'mourning period' for news, where it wouldn't be appropriate to criticize?
idlewan··on The Millionaire Fastlane
It is.

I'd prefer if bullet points were used sparingly though, you could just make use of headings and paragraphs. A very long list of points looks unstructured and is more difficult to read.

idlewan··on “1024,” “2048″ And Other Copies Of Popular Paid Game “Threes” Fill App Stores
As far as the clone itself uses CSS transforms (if it's Cordova/Phonegap based), it should be fine and usable on mobile. You can recognize the clones using Cordova/Phonegap/Webview if they use the exact same style as G.Cirulli's 2048. Now, to recognize the clones using CSS transforms, that's more complicated. Check for their last release date, it should be strictly after 2014-03-13 (as CSS transforms were added to 2048's repo that day https://github.com/gabrielecirulli/2048/commit/7c6fd1b2a4acb...), and from there, test the apps.

I rewrote the whole game's code as an exercice soon after it was released, and took special care in using CSS transforms and not creating/forgetting javascript objects constantly (I wish I knew if that last point made a difference in performance on mobile, but I wouln't know how to measure it). I also added a tutorial screen and an animation for a forbidden move.

That's why I can personally recommend my ad-free clone ('shameless plug' and all that), that you can find here: https://play.google.com/store/apps/details?id=com.erwan.game... or by searching "2+2=2048" in the play store/windows phone store. The swiping mechanic works great with it, so please tell me if you find any issues with it.

idlewan··on Show HN: 2048 Tetris
http://get2048.com
idlewan··on Show HN: My Desk Chair
I've tried that. On my bed, with my laptop face down on this (http://www.aliexpress.com/item/Metal-Folding-Laptop-Table-Fo...) and an external 60% keyboard.

It felt great at first, but there was two major problems for me:

- with the laptop desk I had to slide under it each time I wanted to use the computer and grab the external keyboard, which isn't instantaneous like getting up/sitting down.

- I was waaaayyyy too sleepy lying on my bed. Had 2 minutes micro-naps all the time.

Right now I still often program in my bed, but with the screen vertical and at eyes height on the laptop desk, and my back resting against a bean-bag chair. It's much more comfortable than a standard desk-chair combination, I recommend people try it. I avoid the use of a mouse, however, and my laptop is configured to be very keyboard-friendly, so there's also that to be taken into account. Using a mouse isn't impossible, but I'm much more performant without one.

idlewan··on Show HN: My Desk Chair
It could also just mean that you should expect 'focusing weirdness' when you adapt to the rift, for the first few days. It could be harmless.

Humans are masters at adaptation. I guess we should just wait and see.

idlewan··on ONO sells for $9.5 billion and nobody cares
> The ancient empires had troubles feeding their populations at times. Today, most Americans are overweight.

Problem not solved: the population still has problems being fed the right things for their health to improve.

idlewan··on Show HN: A visual HTML5 animation editor in your browser
I love how they compare their potential users to easily-distracted cavemen.
idlewan··on $25 Smartphones on Firefox OS to Rock MWC
Try Loqui IM on the marketplace.
← PreviousPage 4 of 5Next →