Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raspasov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
361.
▲
by
raspasov
6y ago
A true pure function combined with persistent immutable data structures (Immutable.js, Clojure, Scala, et al) can be memoized and re-executed practically for free (in very short constant time). P.S. In React for example, in almost all cases
362.
▲
by
raspasov
6y ago
1. Messaging queues are stateful constructs. That doesn't make them a bad choice, they are much better than callbacks. But they do have state which is always "your problem". 2. "constantly poking at a database": Sou
363.
▲
by
raspasov
6y ago
Perhaps it's just a different way of doing the same thing, but I never feel the need to reach for a debugger in the presence of the REPL and tools like Timbre. Just wrap what you want to see in (timbre/spy ...) and you're goo
364.
▲
by
raspasov
6y ago
> Why would Java be slower in a read-mostly regime? Your hypothetical is not convincing. Btw, you mention "real" and then move on to "hypothetical" as an example. Because of Clojure's default persistent in-memory
365.
▲
by
raspasov
6y ago
Yes and no. There's real production cases where even default Clojure can result in the same or faster performance than Java. One hypothetical case is a system that does a lot of complex in-memory reads and a few writes to persistent da
366.
▲
by
raspasov
6y ago
I have the opposite experience. Every time I need to use another language outside of Clojure, it feels like most other languages are... confused. A bad case of "designed by committee" experience.
367.
▲
by
raspasov
6y ago
Not very clear what the diff tool is attempting to do. Just looking at the Clojure code, I feel there's better approaches in Clojure to achieve the same or better results. More clarity would be helpful. Also, transducers are a big perf
368.
▲
by
raspasov
6y ago
This is a very high quality discussion on QM and explanations from pontus, keep it up!
369.
▲
by
raspasov
6y ago
Very nice, thank you!
370.
▲
by
raspasov
6y ago
Can you please elaborate? How does this work? Have never heard of such a thing. EDIT: I believe Apple's DeviceCheck API is what the parent refers to. Thank you!
371.
▲
by
raspasov
6y ago
Using a functional language doesn’t make reality and the complexity of state go away (unless you are writing a compiler or a program/system that fully and purely mathematically controls its inputs and outputs).
372.
▲
by
raspasov
6y ago
Have you considered core.match ? I’ve used it to dispatch API calls based on just data shape.
373.
▲
by
raspasov
6y ago
Did you ever consider using Clojure spec or one of the alternatives before it? Runtime data shape/type inference is quite capable.
374.
▲
by
raspasov
6y ago
It might be desirable when the network/algorithm doesn't work as expected and throwing more data at the problem is not possible (say, you've exhausted all available data).
375.
▲
by
raspasov
6y ago
FT has some pretty critical op-ed sections of corporations, almost bitter.
376.
▲
by
raspasov
6y ago
Good satire.
377.
▲
by
raspasov
6y ago
I agree with you. What language are you doing this in?
378.
▲
by
raspasov
6y ago
Wonder how much of the crash is from coffee vs the sugar (the post mentions hazelnut lattes which should be called hazelnut-flavored coffee/sugar drinks).
379.
▲
by
raspasov
6y ago
You are confusing Java with the JVM.
380.
▲
by
raspasov
6y ago
Any specific issues you've encountered?
381.
▲
by
raspasov
6y ago
I can recommend YourKit. It's a paid tool but if you really need it, the small cost is totally worth it. Usually the bulk of your perf. problem comes from a few hot places that are called often and the JVM needs to do reflection on tho
382.
▲
by
raspasov
6y ago
What you're talking about is effectively a type-hint. Clojure supports those like: (defn get-row-by-id [^Number id] ...) (defn get-row-by-user-name [^String s] ...) There's also destructuring which both "extracts" local
383.
▲
by
raspasov
6y ago
This is pretty neat, just tried it between iPhone Safari and MacOS Safari. Worked well.
384.
▲
by
raspasov
6y ago
I would have been really surprised if they actually removed it. The points made in the video are mostly sensible. They acknowledge the many unknowns. It more or less advocates for the Swedish model of dealing with this vs. most other countr
385.
▲
by
raspasov
6y ago
Am I confused or the video is currently on YouTube? https://www.youtube.com/watch?v=uk2YZfnsOPg
386.
▲
TSA passengers highest since 2020-03-24
(tsa.gov)
2 points
by
raspasov
6y ago
|
1 comments
387.
▲
by
raspasov
6y ago
I was not referring to them asking for donations. I was referring to their ad-supported business model where they trade some of their customer's attention/data for money.
388.
▲
by
raspasov
6y ago
I don't subscribe to the view that random internet companies should be regulated by nation states more than our discussion here on HN.com should be regulated. If it applies to FB.com, it can apply to any company or individual online.
389.
▲
by
raspasov
6y ago
Exactly my thoughts. Posted in the "opinion" section, I'll give them that. It's disappointing, I generally like The Guardian, especially what they did around publishing the Snowden docs initially.
390.
▲
by
raspasov
6y ago
Screenshot evidence https://ibb.co/VV0TmyY
More ›