Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
electrum
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
151.
▲
FCC says Dish can't use $3.3B in credits in airwaves auction
(usnews.com)
9 points
by
electrum
11y ago
|
0 comments
152.
▲
by
electrum
11y ago
Just add the Maven dependency and see their own tests for an example: https://github.com/airlift/testing-postgresql-server/blob/ma... https://github.com/airlift/testing-mysql-server/
153.
▲
by
electrum
11y ago
Unfortunately, limiting yourself to only what is available in standard SQL is not practical. For example, doing idempotent inserts, insert-or-update, sequences, transactional behavior for DDL, data types, date/time manipulation, etc. T
154.
▲
by
electrum
11y ago
For Java, see my other comment for how to run real PostgreSQL or MySQL from unit tests: https://news.ycombinator.com/item?id=10003789
155.
▲
by
electrum
11y ago
Aside from a few seconds to spin up a new PostgreSQL instance, it should not be any slower than SQLite. We have a wrapper [1] (forked from [2]) that starts a new PostgreSQL instance from Java unit tests. We have the same for MySQL [3]. This
156.
▲
by
electrum
11y ago
The idea of "checking in ASTs" becomes a lot more compelling when you think about representing a diff of an automated refactoring. For example, a simple rename refactoring, performed by an IDE for a statically typed language, is c
157.
▲
by
electrum
11y ago
You can do that like this: GROUP BY date_trunc('minute', time)
158.
▲
by
electrum
11y ago
Refactoring is often done in order to implement a new feature, but that doesn't mean they need to be done in the same commit. A common workflow is to be implementing something, realize a refactor is needed, "git stash", refac
159.
▲
by
electrum
11y ago
Swift uses annotations (reflection) and generates bytecode on the fly. This fits much better with modern Java development practices and tooling than source code generation. Is such a thing feasible C++, especially in an idiomatic way? Or pe
160.
▲
Teradata Launches First Enterprise Support for Presto
(teradata.com)
2 points
by
electrum
11y ago
|
0 comments
161.
▲
by
electrum
11y ago
Installing GPG Tools on Mac sets up gpg-agent automatically and has Mac Keychain support. I use the agent support all the time for signing Maven artifacts (which requires password-less entry due to the way the release plugin works).
162.
▲
by
electrum
11y ago
The 8x improvement is somewhat misleading as it is based on a single TPC-H query. The other queries from the benchmark seem to show a ~3x improvement: http://vitessedata.com/technology Given that their query engine uses an
163.
▲
by
electrum
11y ago
He tested PostgreSQL: https://aphyr.com/posts/282-call-me-maybe-postgres
164.
▲
by
electrum
11y ago
The latter of which is very common in corporate environments where employee's machines are provisioned by the IT department and contain the company's private CA (which is useful for non-nefarious purposes such as signing certifica
165.
▲
by
electrum
11y ago
What stops the browser from automatically trusting a self-signed cert for PayPal or your bank?
166.
▲
by
electrum
12y ago
According to the Cassandra home page: "One of the largest production deployments is Apple's, with over 75,000 nodes storing over 10 PB of data."
167.
▲
A Simple Design Tweak May Keep Drunk People from Falling on Train Tracks
(gizmodo.com)
1 points
by
electrum
12y ago
|
0 comments
168.
▲
Inventing Favicon.ico
(ruthlessray.wordpress.com)
207 points
by
electrum
12y ago
|
69 comments
169.
▲
by
electrum
12y ago
Have you tried IntelliJ IDEA?
170.
▲
Even Faster: Data at the Speed of Presto ORC
(code.facebook.com)
13 points
by
electrum
12y ago
|
0 comments
171.
▲
by
electrum
12y ago
"There are several options. One option is to work around the hardware limitations in software, displaying something like | /\/ /\ | /^ /\ /\ /\ \/\ \/ | * \_ \/ | |
172.
▲
by
electrum
12y ago
They mention the over harvest problem in the FAQ: "Do I need to leave some honey in the hive for the bees? Yes, this applies to all beekeeping. Your bees need honey to get them through the times when there is no nectar available. The n
173.
▲
by
electrum
12y ago
Same here. "GitHub had an IPO???"
174.
▲
by
electrum
12y ago
You can do that in SQL databases too: store the XML / JSON / whatever in a blob. There is no need to have a normalized import schema, especially since you are doing the transformation using an external application (Scala program).
175.
▲
by
electrum
12y ago
None of those languages have a secure sandbox and writing one is incredibly difficult, even for a language designed to run in such an environment (Java). Native Client might be interesting here to build sandboxes for other languages.
176.
▲
by
electrum
12y ago
And older ones such as Java, released in 1995.
177.
▲
by
electrum
12y ago
The choice of register vs stack for bytecode doesn't make any difference for a modern JIT like HotSpot. The bytecode gets transformed into an intermediate representation (IR) and optimized before being translated to machine code. A reg
178.
▲
by
electrum
12y ago
Databases also have advantages: transactions, durable logging, replication, integrated backups, etc. Tom Kyte has some insightful points in this thread: https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUE.
179.
▲
by
electrum
12y ago
This sounds similar to Facebook's Haystack: https://www.usenix.org/legacy/event/osdi10/tech/full_papers/...
180.
▲
by
electrum
12y ago
There is a native version of Thrift for Java: https://github.com/facebook/swift
More ›