Better HN
topnewbestaskshowjobs
Log inSign up

phpnode

7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions

Founder of https://codemix.com/ - authoritative product context which makes sure coding agents build the right thing and humans stay in control.

Email: charles@codemix.com

Submissions

comment 10y ago · link · parent

Github jobs has existed for years and years but I agree that they are massively under-utilising their data. https://jobs.github.com/

comment 10y ago · link · parent

This one is truly async, it uses a libuv managed thread pool.

comment 10y ago · link · parent

It does it on the main thread, pseudo-async, so I agree with you, you should not use this library. Look for a native module instead.

comment 10y ago · link · parent

The array of pointers thing is standard/common but I'm not aware of any which use the features of the graph itself to avoid pointer indirection. Typically the edges are stored in some kind of tree structure anyway so I'd guess that the savings aren't worth the added complexity when the thing does a lot of pointer lookups besides the initial one. But I'm probably going to experiment with it in my own db project.

comment 10y ago · link · parent

> The problem with a "pointer" like this is that you then can't move stuff around as easily

You can, it just requires one further level of pointer indirection. Rather than pointing to the physical location of the data, you store a pointer to an offset in an array of pointers.

Alternatively you can point directly if you're prepared to update those pointers when you move things around. Luckily a graph database is ideally suited for this kind of operation because it makes discovering those pointers exceptionally simple and efficient.

comment 10y ago · link · parent

It certainly seems that way, but one of the fundamental rules here is that you can't ordinarily trust clocks to keep in sync, they drift, jump backwards and forwards etc. Google solve this problem using synchronized atomic clocks in their data centres, which is not an option for most systems running on commodity hardware.

comment 10y ago · link · parent

I was reacting to your assumption that I blindly accept the news as reported as truth, in order to "feel better about life" in your words. You don't know anything about me.

comment 10y ago · link · parent

The burden of knowlege must rest heavy on your shoulders, if only other people were as capable of critical thinking as you are the world would be a better place... Seriously though feel free to keep your ill-informed assumptions to yourself.

comment 10y ago · link · parent

Well, yes, to a large degree. A famous, reputable news source is generally going to provide better quality service than smaller media outlets.

comment 10y ago · link · parent

In the nicest possible way, your post reads like "Passive income suggestions (2006)" - e.g. I can't really believe that stoozing still works when interest rates are so low, and getting new affiliate sites ranking is very difficult these days.

comment 10y ago · link · parent

Coming to the spec soonish and already supported in Babel - https://github.com/jeffmo/es-class-fields-and-static-propert...

comment 10y ago · link · parent

Absolutely this. Not only do assertions make it easier to validate your understanding, they capture and preserve that understanding for future developers (including yourself, 6 weeks from now).

Assertions are comments which can always be trusted and which never get out of date. It baffles me that there's so much reluctance to use them (especially in dynamic languages).

793.

The Manual (1988)(freshonthenet.co.uk ↗)

6 points · by phpnode · 10y ago · discuss

comment 10y ago · link · parent

* she

comment 10y ago · link · parent

I propose "figuratively".

comment 10y ago · link · parent

It's idiomatic style in the K community, e.g. here's a random source file from kdb itself - http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/odbc.c

Some members of that community prefer this style because they find it more readable.

comment 10y ago · link · parent

> I'm not sure it's possible to move a project using Babel 5, async/await, generators and react to upgrade to Babel 6. I've spent hours on it.

Well, you're actually right. Babel 6 has had a lot of problems, particularly with async functions, but they are slowly being worked out. I think it's pretty clear at this point that it was released too early, and they really need smoke tests to prevent this kind of problem in future. If you've already built a significant project using Babel 5, definitely consider holding off the upgrade for another month or two.

comment 10y ago · link · parent

This reddit thread offers some pretty interesting / convincing speculation on Craig Wright's scam - https://www.reddit.com/r/Buttcoin/comments/3web4s/some_more_...

799.

Show HN: Design by Contract for JavaScript(github.com ↗)

9 points · by phpnode · 10y ago · 1 comment

comment 11y ago · link · parent

Yes, true

comment 11y ago · link · parent

Things regularly fail to make it due to web compat, e.g. Array.prototype.contains() was rejected.

comment 11y ago · link · parent

IRHydra2 is pretty good for it but has a learning curve.

There is really no need for the arguments object in a world with default and rest parameters, and it has always been an obstacle to performance, so I'm glad arrow functions don't use it.

comment 11y ago · link · parent

It would not be a web compatible change so will never happen. Too much code relies on them being different.

comment 11y ago · link · parent

No one believes this, but even if it were true it would not excuse your behaviour. It is not a defence.

comment 11y ago · link · parent

You just called the woman that you were harassing a coward.

comment 11y ago · link · parent

No one is trashing YC here, plenty of people criticising you and your behaviour though. Maybe you should reflect on that.

comment 11y ago · link · parent

No one needs to sockpuppet or troll on this thread, you are doing a fantastic job of ruining your own business and clearly need no further assistance.

You had an opportunity to make this right, but now you're doubling down on the insanity.

comment 11y ago · link · parent

Your cofounder specifically mentioned that you made those comments, not your presumably fictional support team. Are you lying or is your cofounder?

comment 11y ago · link · parent

No one is buying your false narrative, you are managing to make a bad situation worse. You're going to lose your status as a YC company over this.
1
262728
53