Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
61 ms
·
661.
▲
by
ris
8y ago
The greatest sinners are methods that both mutate and return their result. It's possible for people to use some of these for years and not realize they're mutating. This is something python has largely got right.
662.
▲
by
ris
8y ago
I think RDBMSs will always feel slightly "special-case"-y when compared, as you seem to be doing, with general purpose programming languages - remember that SQL was never designed to be a turing complete language (insert someo
663.
▲
by
ris
8y ago
I had no idea about this (and I've been using the `property(row)` pattern for years), but sure enough it is documented at the bottom of the section https://www.postgresql.org/docs/10/static/rowtypes.html#
664.
▲
by
ris
8y ago
Microservices? Turn and walk away if you still can. The real costs will come from developer time spent doing pointless, pointless chores.
665.
▲
by
ris
8y ago
Many years ago (before the advent of OpenStreetCam or Mapillary) I proposed a federated scheme where various entities could obtain their own dirt-cheap http hosting (backblaze?) and simply submit indexes (or make available in an easily disc
666.
▲
by
ris
8y ago
As interesting as this is, I'm not really sure what this gets you over a regular RTOS that might be used with these sorts of microcontrollers apart from easy porting of existing unix software (though with 2.2BSD it would have to be ver
667.
▲
by
ris
8y ago
There are better reasons to prefer tuples over lists when mutation is not needed, namely that it prevents unexpected mutation performed by other code to which references have been "leaked". This makes code easier to read as a resu
668.
▲
by
ris
8y ago
And how much money are you bleeding running that machine 24/7?
669.
▲
by
ris
8y ago
As amazing as this sounds you've got to wonder what this rice would do to peoples' blood pressure.
670.
▲
by
ris
8y ago
But wouldn't that also flush out all the nutrients and nitrogen the rice needs to grow too?
671.
▲
by
ris
8y ago
If you want a technical audience to read your page, get rid of the videos and unnecessary animations.
672.
▲
by
ris
8y ago
Doesn't seem like it would be a great business decision to bind the core of your game to a proprietary cloud service.
673.
▲
by
ris
8y ago
Yeah , there is a neatness to it. I manage to achieve a similar thing with recursive generators in python quite often, which ends up being quite concise.
674.
▲
by
ris
8y ago
Um... how many ORMs do you have experience with? I suggest you look at the mentioned sqlalchemy core's ability to map more or less directly to SQL with reduced syntactic ugliness.
675.
▲
by
ris
8y ago
Though I would propose that in the vast majority of applications, the amount you're going to need to do graph-like operations is significantly outweighed by the amount you're going to need to do regular relational-type operations.
676.
▲
by
ris
8y ago
My advice is to always use an ORM with SQL if you possibly can, or if not an ORM per se, at least an abstraction library like the sqlalchemy "core". It sounds ironic to say but "SQL" is the worst part of SQL. That shou
677.
▲
by
ris
8y ago
I never said that it is inappropriate for a "typed language", in fact, far from it.
678.
▲
by
ris
8y ago
> My view is that the limitations are almost purely financial Your view is wrong. Implementing highly optimized versions of different languages (which may from the layman's point of view look quite similar) is not completely compa
679.
▲
by
ris
8y ago
From what I've seen, V8 is extremely wed to the javascript language model. I don't think it even has a concept of numbers that aren't javascript "numbers". Unless of course you go towards wasm territory, which I
680.
▲
by
ris
8y ago
> industrial quality VM+JIT I'll skip over this mostly, just wondering what exactly you mean about this and whether you consider LLVM not to be "industrial quality" seeing as the failed Unladen Swallow project based itself
681.
▲
by
ris
8y ago
Very interesting that this doesn't seem to lean on any existing compiler toolchains - it all appears hand written from compiler through cpu generation. I wonder how the results compare to something like TCE http://tce.cs.t
682.
▲
by
ris
8y ago
Should I be surprised that it happened to work in the example they decided to showcase in the release announcement? I'm afraid I foresee this whole thing going quite hilariously wrong on the order of magnitude of Microsoft's Tay
683.
▲
by
ris
8y ago
Great - installing random (huge) binaries that have been compiled god-knows-how by god-knows-whom expecting god-knows-what other libraries to be on the target system.
684.
▲
by
ris
8y ago
pip installing binary dependencies! What could go wrong?
685.
▲
by
ris
8y ago
This case could also be addressed by something more like PEP 3150 without the nasty potential for leaking the scope of an assignment beyond that statement in a non-obvious way. https://www.python.org/dev/peps/pep-3
686.
▲
by
ris
8y ago
This proposal looks on the surface to be useful but the more I think about it, the feature look like it would be awful for those of us who try to write side-effect-free code whenever possible. The assignments made here leak their references
687.
▲
Briar: Peer-to-peer encrypted messaging and forums
(briarproject.org)
15 points
by
ris
8y ago
|
1 comments
688.
▲
by
ris
8y ago
Problem is that randomly assigned ids tend to perform sub-optimally in relational databases due to the sparse distribution screwing up row estimates and causing fragmented writes to the underlying table. For this reason many people have a p
689.
▲
by
ris
8y ago
Damn you diffie hellman!
690.
▲
by
ris
8y ago
So here's something I can't get a straight answer on: Surely if content is served over HTTPS with a valid certificate, it should be possible to save (possibly as part of a WARC) a "signature" of the TCP stream that would
More ›