Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pg314
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
241.
▲
by
pg314
10y ago
A better format would specify the precision of integers so you can depend on it. Now you need to know the limitations of all implementations if you want to use it as an interchange format. It doesn't even mention the issue in the spec,
242.
▲
by
pg314
10y ago
Even something as simple as integers is problematic, because they are underspecified. Since javascript uses 64 bit floating point numbers for all numeric types, 64 bit integers can not accurately be represented. If you need 64 bit integers,
243.
▲
by
pg314
10y ago
From [1]: "JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. " [1] http://www.json.org/
244.
▲
by
pg314
10y ago
Chapter 5 of SICP actually goes into the details of how to implement a register machine to execute Scheme, including a simulator, assembler and compiler.
245.
▲
by
pg314
10y ago
Nothing. That's the way I usually test my C code. It has the drawback that one failing test aborts the whole program. The error messages are not the most informative, but it does the job.
246.
▲
by
pg314
10y ago
You mean "rather than x being sent to some message"? E.g. 0 > x wouldn't work, because the message #> is sent to 0 with x as an argument? In a case like that you can still make it work by exploiting the fact that arit
247.
▲
by
pg314
10y ago
> Is this a bit like a runtime macro? You can indeed accomplish some similar things with it. > Does it have performance disadvantages? A Common Lisp macro is evaluated once at compile time. In Smalltalk this is evaluated at runtime, s
248.
▲
by
pg314
10y ago
Since if-statements are built out of blocks and message sending, you can easily do some cool things. One of them is building up an abstract syntax tree (AST) of an expression without parsing that expression. E.g. suppose you want to build u
249.
▲
by
pg314
10y ago
> it makes the execution times of your binary extremely unstable and high-variance. Not necessarily, it depends on your allocation patterns. The same can be said for using malloc. > Not to mention, it has no idea how your program uses
250.
▲
by
pg314
10y ago
> You realize that everyone knows how expensive this stuff is. Not everyone. I've had plenty of discussions with people who had no idea.
251.
▲
by
pg314
10y ago
The studies [1] and [2] found no evidence of any adverse effects, rather the contrary (lower incidence of knee osteoarthritis in the running group). One possible explanation is that the runners were less likely to put on weight over the yea
252.
▲
by
pg314
10y ago
Have you looked into pg_repack [1]? It's a PostgreSQL extension that can CLUSTER online, without holding an exclusive lock. I haven't used it, but it looks interesting as an alternative to the built-in CLUSTER. [1] http:/&#x
253.
▲
by
pg314
10y ago
> Beyond some size (some revenue, and/or more than 500 shareholders), even a private company essentially needs to make all the disclosures that a public company does;... I don't think that's true. Do you have some source t
254.
▲
by
pg314
10y ago
Not only average investors. Lethargy bordering on sloth remains the cornerstone of our investment style: This year we neither bought nor sold a share of five of our six major holdings. -- Warren Buffet in the 1990 letter to the shareholde
255.
▲
by
pg314
10y ago
Lisp people might recognise the name of one of the main Snabb authors, Luke Gorrie. He started Slime. Always fun to see what he's up to. Andy Wingo, the presenter of the talk, works on Guile.
256.
▲
by
pg314
10y ago
I've become vegetarian, and have never owned a car. I've still got my 8 year old Nokia instead of buying the latest iPhone. My shoes are 10 years old (but well maintained and high quality, so you wouldn't be able to tell, exc
257.
▲
by
pg314
10y ago
There are more than enough nukes out there to do the job. Famines and massive numbers of refugees will almost inevitably lead to wars...
258.
▲
by
pg314
10y ago
Insurance companies are taking climate change seriously, for sure. I found [1] after some quick googling. [1] http://evanmills.lbl.gov/pubs/pdf/climate-action-insurance.p...
259.
▲
by
pg314
10y ago
> Soy beans / palm oil are one of the top causes of deforestration in rainforests around the world. 75% of soy beans are used as animal feed [1]. [1] http://wwf.panda.org/what_we_do/footprint/agriculture&#x
260.
▲
by
pg314
10y ago
Arbitrary compile time evaluations in the form of macros have been around in Lisp since 1963 [1]. I'm sure that pretty much every Lisp programmer thinks macros are a great idea. If you want to learn more about them, I recommend Practic
261.
▲
by
pg314
10y ago
> There's no European Union-wide single-payer system, either. I think that's purely for historical reasons, though. There's no EU-wide military either.
262.
▲
by
pg314
10y ago
> I don't understand this. I'm not saying I don't believe you, but it seems ridiculous to me. I actually feel vicariously annoyed just reading that story. It was ridiculous, and I was annoyed at the time too. Especially be
263.
▲
by
pg314
10y ago
I don't have the book ready here, and it's been a long time since I last read it, but wasn't that the productivity for specific, limited and well-specified tasks? How about the productivity of tasks that only a subset of deve
264.
▲
by
pg314
10y ago
Exactly. At my last job, a colleague of mine was tasked with creating a tool to generate a monthly summary report based on 100s of millions of records. It took him weeks of trying to get something working in Python (naively read in all the
265.
▲
by
pg314
10y ago
In [1], Bill Gates recounts an anecdote about Buffett (with a picture): Remember the laugh we had when we traveled together to Hong Kong and decided to get lunch at McDonald’s? You offered to pay, dug into your pocket, and pulled out…coupo
266.
▲
by
pg314
10y ago
Just a nitpick: gold is not going to grow your wealth, it will preserve your wealth. One ounce of gold is worth about a loaf of bread every day for a year. That was true in the time of King Nebuchadnezzar (600 BC), and is roughly true nowad
267.
▲
by
pg314
10y ago
If you enjoyed that article, you might like the book 'Poor Charlie's Almanack, The Wit and Wisdom of Charles T. Munger': https://www.poorcharliesalmanack.com/ .
268.
▲
by
pg314
10y ago
> There are bigger threats out there than the current climate change. Antibiotics losing effectiveness is one, yet is seems like almost all countries in the world still ignores that fact. I'm not sure antibiotic resistance is a grea
269.
▲
by
pg314
10y ago
> Then there is always curiously left out the consideration, now forgotten depending on your birthyear, that scientists of a recent generation were up in arms about global cooling instead Scientists in the past thought that the earth w
270.
▲
by
pg314
10y ago
Thanks for the extra statistics. Can you add a link to the article? It seems to be missing...
More ›