Better HN
topnewbestaskshowjobs
Log inSign up

lenary

152 karma · joined Mar 1, 2010 (16y ago) · 43 submissions

Submissions

comment 7y ago · link · parent

They are likely to remove this in the next C standard (or may have already), because a declaration with a static size is “compatible” with a declaration with no static size, and thus you can get unsoundness.

So your compiler should accept (though the semantics of static suggest this program would be wrong):

    void foo(int a[static 3]);
    void foo(int a[]);
According to the spec, this is fine, but when you come to define the function foo, should it respect the ‘static’ annotation? The spec doesn’t say, and doing static analysis of subsumption for the expressions after ‘static’ is much more complex to keep sound than C prefers in its specification.

comment 8y ago · link · parent

It is not ready for production use.

Do try it out though!

3.

A New Back End for Idris: PHP. “Yes, Really”(github.com ↗)

2 points · by lenary · 11y ago · discuss

comment 14y ago · link · parent

It seems you still want to micro-manage your remote team, which at the same time isn't that remote as you want to meet them once a week.

Come back when you have some sensible suggestions for a truly remote team.

comment 14y ago · link · parent

There has been discussion about this already - Kevin Hammond makes his case here: http://icfpcontest2012.wordpress.com/2012/07/05/judging-envi...

6.

ICFP Contest 2012(icfpcontest2012.wordpress.com ↗)

49 points · by lenary · 14y ago · 5 comments

comment 15y ago · link · parent

I love that research is going into disproving already superseded theories.

comment 15y ago · link · parent

FINALLY! Been waiting for this for ages!

comment 15y ago · link · parent

is it just me, or does anyone else think that though the design is prettier, it kinda makes other parts of the app look bad - for instance compare the commit style to the tree listings. it's not that one or the other look bad, it's just the dissimilarity is jarring.

comment 15y ago · link · parent

yes, seems really slow from my end too.

11.

Erlang Web Libraries & Frameworks Rundown(lenary.co.uk ↗)

2 points · by lenary · 15y ago · discuss

comment 15y ago · link · parent

no need to restart the server. if you're using passenger, just `$ touch tmp/restart.txt` (in your rails app). That will restart just that app in passenger (and lots of other servers too)

comment 15y ago · link · parent

this is not quite what it makes out to be. of course at one level you only need an ethernet cord, but at some level you need to supply power to the cord itself. That power requires a power cable + PoE box if done close to the monitor, or you can buy a rack PoE unit and do it further away, which will have a limit on how far away from the unit you can be.

PoE units are useful when having only one cable enter the housing for waterproofing issues. otherwise, why go to all the hassle?

comment 15y ago · link · parent

nope, i don't do that... maybe i will someday

comment 15y ago · link · parent

doesn't heart kinda solve the cyclic "who restarts who thing". I think heart (if enabled) sits there until the erlang process exits, restarts the erlang vm, which in turn also brings up an instance of heart. yeah, complicated and not perfect, but it works.

comment 15y ago · link · parent

an, if only herokugarden lived on, that would be ace!

comment 15y ago · link · parent

and that the ip cirfu.net is currently on is owned by amazon. (from my angle)

comment 15y ago · link · parent

what's even more instesting, is that cirfu.net also has this notice up, which is very very strange. Surely they wouldn't take their own site down for gambling offences

comment 15y ago · link · parent

default frontend scripting language

comment 15y ago · link · parent

Sometimes yes, sometimes no. it depends on the alcohol, how much and other external factors like my levels of motivation or tiredness.

It would be clichéd to say that some of my best work was done drunk, but i'd also like to point out that some of my worst has been done when drunk too.

comment 15y ago · link · parent

rubyforge is pretty good, and i think railsinside and/or rubyinside let you contribute posts if you wish

comment 15y ago · link · parent

This i found very enlightening to read. I wonder how many accounting apps actually store their data as he describes in this article, to aid their calculations

comment 15y ago · link · parent

Thinking over this comment, would it be weird to set up an office where the managers all are in an open-plan setup, and the developers all have their own private offices? I think it would be interesting to see what the outcome was

(Disclaimer: i'm a developer who works in an open-plan office and hates it)

comment 15y ago · link · parent

"The hard fact is if a user cannot learn how to use a feature, it might as well not exist." - Dale Harvey, from this page: http://arandomurl.com/2010/07/07/design-tips-for-programmers...

comment 15y ago · link · parent

did anyone else think "red-green-refactor-wristband" when they saw this? Or at least something to hook into a CI or uptime service?

comment 15y ago · link · parent

the "scope" parameter that google included is actully from the OAuth 2.0 spec (still in draft iirc). There are a lot of improvements in OAuth 2.0 which are worth checking out, but this is one of the main ones

comment 15y ago · link · parent

for your issue with wanting to swap stylesheets when the user clicks (mobile | standard) or whatever, try doing all your media queries in the stylesheet <link> tags themselves, then using javascript to unset all the media="" parts, or change them so that the correct stylesheet applies, rather than faking browser width that might fuck around with other JS functions

comment 15y ago · link · parent

I will upvote you, because I'm the OP and you are making comments useful to the discussion I hoped to provoke. Too bad about the downvotes for my comment "laughing is evil" (which was said sarcastically, ftr)

comment 15y ago · link · parent

it wasn't taken so. that's almost exactly where I was coming from to post the article anyway

comment 15y ago · link · parent

to be honest, it's because i'm new to posting here and felt like being sensationalist
12