Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
heartofgold
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
1.
▲
by
heartofgold
4y ago
For any older java programmers that may have a bad taste in their mouth when they think of green threads: when Java first came out, it had green threads, and all N threads that were spawned were tied to a single kernel thread. It also requ
2.
▲
by
heartofgold
5y ago
> Lisp is not widely used This is so unfortunate. Lisp has so many good things to teach us.
3.
▲
by
heartofgold
5y ago
SQS FIFO is like 25-40% more expensive, but you're getting added benefit and additional guarantees in exchange. For the most expensive tier: 40 cents per million API requests for plain SQS vs 50 cents per million API requests for FIFO
4.
▲
by
heartofgold
6y ago
Not quite _always_. There were some documented caveats... the one I hit before was: Read nonexistent key, followed by a write of that same key, and then a subsequent read could return a stale read saying it didn’t exist. (even though it h
5.
▲
by
heartofgold
6y ago
I went thru a magnetic pole swap, if you will. I went from growing up as a kid toying in C , later professional development in c++ and java. In college, had a small taste of functional style and found it difficult for my brain to grok.
6.
▲
by
heartofgold
7y ago
You are citing case fatality rate for MERS and SARS, but not the flu (which is typically 0.1%), and yet in any given year the flu has killed many more people than MERS or SARS. Why? Because millions get the flu whereas MERS and SARS were c
7.
▲
by
heartofgold
7y ago
I do agree that you should prefer functions over macros. The rule of thumb I’ve heard is only use macros if they are absolutely necessary. But having that option is better than not having the option at all IMHO.
8.
▲
by
heartofgold
7y ago
What about JDBC? Here's a few examples stolen from the doc page for the next.jdbc library ( https://github.com/seancorfield/next-jdbc ): > clj Clojure 1.10.1 user=> (require '[next.jdbc :as
9.
▲
by
heartofgold
7y ago
Using the clj-http library in clojure to fetch from a REST webservice: (client/get "http://example.com/resources/3" {:accept :json :query-params {"q" "foo, bar"}}) With the res
10.
▲
by
heartofgold
7y ago
Here is an example to massage/manipulate CSV data. Stolen from the README page for a clojure CSV parsing library ( https://github.com/clojure/data.csv ) (defn read-column [reader column-index] (let [data
11.
▲
by
heartofgold
7y ago
Not original poster, but my take is: - Immutable data-structures with concise literals for lists, vectors, maps, and sets. Having pure functions and immutable data-structures makes code easier to reason about, easier to test, and thread-saf
12.
▲
by
heartofgold
7y ago
I second this. Struggle with each problem and then view other answers to see how elegantly they solved the same problems. This worked wonders for me as well.
13.
▲
by
heartofgold
7y ago
It seems like go's killer feature, initially, was it's approach to concurrency with goroutines and CSP. However, race conditions are still quite possible with goroutines, and many experienced go developers seem to eschew goroutine
14.
▲
by
heartofgold
7y ago
The improvements in autopilot in my friends model 3 is truly astonishing to me versus the first gen auto-pilot in the model s. If the incremental improvements over the last 2 years are any indication of what's possible over the next 2
15.
▲
by
heartofgold
7y ago
Don't get me wrong, I'm not cultist. I agree w/ you that what is going on with the SEC seems reckless, and I don't like it. There are a number of things Musk has done that I definitely don't agree with. (However,
16.
▲
by
heartofgold
7y ago
In 2016 when you could pre-order a model 3, Musk said first deliveries of model 3 would begin in late 2017. About 2,500 to 3,000 model 3 had been delivered by the end of 2017, and over 200,000 have been delivered to date. https:/
17.
▲
by
heartofgold
7y ago
A lot of people want to trash Musk and Tesla, but I look at it this way: - Sure the CEO might be too active on twitter and at times say or do things typically considered inappropriate CEO behavior. - Musk often makes bold claims and sometim
18.
▲
by
heartofgold
7y ago
If you want to look at it that way, you also should include the emissions/environment impact included in acquiring the oil, building refineries, the emissions during the refinery process, and the shipment of the fuel around the country
19.
▲
by
heartofgold
7y ago
For me personally: - I started out just learning navigation. How to move around within buffers, how to open multiple buffers and move around between buffers. Then I learned several built in commands. Years later I learned clojure, a lisp di
20.
▲
by
heartofgold
7y ago
Superficially org looks similar to markdown, but the kinds of manipulations you can do with TODO lists, calendars, tables within emacs is like magic. It's nothing like markdown when you use it this way.
21.
▲
by
heartofgold
7y ago
What jacobajit said. Or here's what Dijkstra said: "Program testing can be used to show the presence of bugs, but never to show their absence!" Dijkstra (1970)