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

Here's a typed objects system for JS which uses ArrayBuffers for backing storage, in future it will also support SharedArrayBuffer - https://github.com/codemix/reign (disclaimer: I wrote this).

comment 10y ago · link · parent

"They" don't, this model does

comment 10y ago · link · parent

Let's just say that coupling this preference with the name "standard" is an extremely contentious decision (search the github issues).

comment 10y ago · link · parent

Falcon Heavy is late, but making Falcon Heavy economical means making all of the 3 F9 first stages it uses reusable. They haven't cracked that yet, they've got 2 good landings and a lot of data, but it's far from certain whether e.g. the landing attempt next week will be successful.

Most of their customers do not need the extra payload / push of Falcon Heavy and so they're concentrating on making F9 itself work first. This is reasonable I think.

comment 10y ago · link · parent

The implication is that driving over the speed limit is likely, on average, to be less fuel efficient than obeying it. Due to the laws of human nature, very few people drive significantly below the speed limit, and very few people prioritise their fuel economy over everything else so this translates to a reasonable guideline.

comment 10y ago · link · parent

If an implementation of raft is susceptible to split brain then it is not raft, it's something else. Please read the literature rather than dismissing it, no one owes you any further explanations and no one is handwaving or appealing to authority.

comment 10y ago · link · parent

I think the reality is a mixture of both, the lazy, incompetent programmers are under pressure to ship too!

comment 10y ago · link · parent

Yeah it's really similar, not just in premise, the writing style really reminded me of the narration in that awesome film.

comment 10y ago · link · parent

Agree that this is the exact opposite of my experience as a contractor in the UK. I work as a contractor because the money is much better and because I have access to a wide variety of interesting projects. In the UK the contractors have the power - the companies I work for would hire me full time if they could.

comment 10y ago · link · parent

I think cubano is referring to the mindset that "it's better to skip over 100 good people than to hire one bad apple" which is very silly but a common attitude in certain kinds of organisation.

comment 10y ago · link · parent

You don't have to. The tools which worked 10 years ago still work today. The tools which worked 5 years ago still work today. No one forces you to switch to the new hotness, people choose to.

comment 10y ago · link · parent

I mean you're technically correct, but how long will that take? The earth is large and we have not covered even a fraction of 1% of it with landfill. It's unlikely that we'd actually run out of space in practice, it'd take thousands of years. Not that I condone the idea.

comment 10y ago · link · parent

Gremlin is a practical query language designed for developers and has very little (maybe zero) usage in academia. SparQL is the more established option which does get some academic (and production) usage, particularly as a lot of research on graph databases has a cross over with semantic web research.

This isn't the first time I've seen you criticise the "academic elite". You seem to use it as a crutch, an excuse for sloppy thinking and poor quality software.

comment 10y ago · link · parent

Query language isn't a requirement but exposing the capability to do those kinds of selects / filtering operations is. It doesn't have to support Dijkstra's algorithm but it should be possible to implement it (efficiently).

comment 10y ago · link · parent

Equivalently, jquery is the new mongodb

comment 10y ago · link · parent

perhaps this is a terminology issue, I'll admit that I'm too young to have used pre-relational graph databases, but presumably they have a way of navigating / jumping between documents/vertices, (presumably based on pointers), otherwise what point would there be in having a graph?

I'd encourage you to look at the product and see whether it meets your definition.

comment 10y ago · link · parent

Not at all but maybe I'm not being clear. My definition of "graph database" is "a database which can efficiently represent graphs and offers functionality for traversing them, in order to allow queries such as 'find the business relationships between user X and user Y based on who they've worked with' (ala linkedin)"

This is not what gun does. It alternately calls itself "the simplest database out there", "not a database" and "a distributed cache". It provides a mechanism for sharing a list of objects across multiple peers, but must transfer all of the data to each peer. It is conceptually similar to downloading a large chunk of JSON from a server and using lodash, ramda etc to query it, but no one would call that a graph database.

comment 10y ago · link · parent

We've never talked about Dijkstra as far as I recall. Your product doesn't support graphs any more than, say, mongodb does because ultimately all you are doing is loading an object from JSON and then sending it to the consumer. This is in contrast to true graph databases whose main selling point is their ability to efficiently traverse, filter and aggregate large graphs to find the answer to some question, and then send the answer to the consumer.

Gun doesn't meet anyone's definition of "graph database" other than your own. If I load some JSON from a URL, and use lodash to pluck some data out of it, is it a graph database?

comment 10y ago · link · parent

We've had this discussion before but that product is not a graph database, it has no graph traversal features

comment 10y ago · link · parent

It's not feasible because of cost and political will.

comment 10y ago · link · parent

yes, you can do something like `HTMLing.registerElement('foo-bar', {})` and then when you use `<foo-bar />` in another template it will render it. I should note that I'm not maintaining this library very well because I've mostly switched to React, but it does work.

comment 10y ago · link · parent

no, it's a way to share the same templating syntax on the client and server but isn't a full server side rendering solution. It's pretty fast though, just about the fastest templating engine out there last time I checked.

comment 10y ago · link · parent

Here's a thing which tries to do that - https://github.com/codemix/htmling/

comment 10y ago · link · parent

Honestly that was a very very bad idea for a startup.

comment 10y ago · link · parent

I wrote a Babel plugin which brings a similar syntax to JavaScript, so you can write this:

    for (let i = 0; i < someVar; i++) {
       invariant: i < 10000; 
       console.log(i);
    }
along with other kinds of contract, like preconditions and postconditions - https://github.com/codemix/babel-plugin-contracts

comment 10y ago · link · parent

No I think those should work with async functions as it is literally just translating `async` -> `yield`, but worth investigating.

comment 10y ago · link · parent

> Bitcoin is used by millions of people a day now.

Tangible example please. Bit Coin transaction volume is about 200k/day, so how are these millions of people using it?

comment 10y ago · link · parent

Babel can transform async functions into Bluebird coroutines, so the best of both worlds - https://www.npmjs.com/package/babel-plugin-transform-async-t...

comment 10y ago · link · parent

Don't worry, graphql isn't related to graphs.

comment 10y ago · link · parent

In theory, the opposite, because a compiler knows that a constant binding never changes so the value it references can be inlined everywhere it is used without having to do runtime checks. But I think engines are not doing this yet.
1
252627
53