Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kortex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
781.
▲
by
kortex
4y ago
I bet we are nowhere near the engineering limit of flow battery energy density. It is fairly limited in research compared to the various conventional battery technologies. I think a 5x increase in energy density over Vanadium redox (to 100-
782.
▲
by
kortex
4y ago
Lithium seems like a bad fit all-around. Plus, just charging all those batteries would put a ton of local strain on the grid. I think this would be an ideal situation for liquid flow batteries. Those seem like only a matter of time, I don&#
783.
▲
by
kortex
4y ago
Sure, I'd say that's a real photo - you could easily pull it off with a single exposure of film. Just because the photo is real, doesn't mean it's free from deception. I could take a "real video" of gorilla sui
784.
▲
by
kortex
4y ago
> I highly doubt such a thing exists, more likely you are used to a certain level of bad code and don't understand it can be better. Ohhh trust me, I know bad code. And I know good code. My unit of measurement is how fried I feel at
785.
▲
by
kortex
4y ago
> Small code changes lead to hour long unit test runs since most of the unit tests need to be rerun for every change. You're writing unit tests wrong if they are taking that long. Unit tests should be quick. > It's impossi
786.
▲
by
kortex
4y ago
I love me some python, it's my favorite and most-versed language by miles, but typescript definitely gets the W when it comes to its type system. Idk exactly why - both js and python "bolted on" their type systems (syntactic
787.
▲
by
kortex
4y ago
> Ahh so if a method on an object dynamically adds in the quack() method at runtime, does the object spontaneously change type? Yes, actually. This is an antipattern in the vast majority of use cases. There are far better patterns out th
788.
▲
by
kortex
4y ago
And I've seen the exact opposite. Messy, poorly/under/incorrectly-documented buggy microservices which barf on corner cases, painful to refactor, no way to verify correctness without tons of unit and integration tests. Conver
789.
▲
by
kortex
4y ago
> If at some point you decide the way one of those sub-libraries works is wrong, could be done better, etc. then you can write a new sub-library that just provides the same public interface. That's...that's literally how type s
790.
▲
by
kortex
4y ago
What are some examples of popular python libraries that use this ideal python development paradigm?
791.
▲
by
kortex
4y ago
> You think you need to static typing for this since you haven't spent the time to learn how Python does these things. I've been writing python for over 15 years and use Pycharm extensively. Please don't make assumptions a
792.
▲
by
kortex
4y ago
> pytest fixtures are hard. It's repetitious needing to re-annotate them every test. Yeah, this drives me nuts as well. But Pycharm has recently started inferring types and jump-to-declaration works, so I believe obtaining that info
793.
▲
by
kortex
4y ago
> You are basically not writing Python code at all. I really dislike this take. I believe Python is about rapid iteration, doing more of functionality with less code, and enjoying the process of programming. You know what I enjoy? Easi
794.
▲
by
kortex
4y ago
I don't see it as "LOC-worship". It's about the most objective measure of codebase complexity/scope as could exist. It doesn't equate to features, but it certainly correlates to it, more business logic means mo
795.
▲
by
kortex
4y ago
Python specific: - `pytz.timezone(timezone_name)` will give you the current offset for that timezone - well, it will at least be some consistent offset - surely, every timezone has the same reference starting point? What `pytz.timezone(name
796.
▲
by
kortex
4y ago
Simple: a "real" photo is one in which a light field from the real world impinges on a photosensitive media (CCD, film), and directly encodes that information, with some allowance for global light levels, gain, ISO, and speed. Any
797.
▲
by
kortex
4y ago
In the grand scheme of molecules, they look nothing alike. DDT is what we call a "greasy brick", while sucralose is a highly water soluble sugar.
798.
▲
by
kortex
4y ago
Chlorine-carbon (or halocarbons in general) bonds are somewhat rare in nature. That is not to say they don't exist, but they are a bit unusual. The problem with halocarbons (aside from fluorine, which has its own issues) is they are ge
799.
▲
by
kortex
4y ago
> Computer calculations by colleagues at the University of California, Los Angeles, revealed DMSO knocks off the carboxylic acid group. “Once that happens it causes the entire molecule to fall apart in a cascade of reactions,” Dichtel sa
800.
▲
by
kortex
4y ago
Gorgeous. I love the bold choices. Website really pops. Clearly a lot of care went into this whole operation. Kudos on having two different layouts. Aluminum chassis is great. I don't travel with a keyboard often, but if I did, I'
801.
▲
by
kortex
4y ago
Arrow keys worked for me, but sadly back-arrow did go to the previous animation (Firefox, mac).
802.
▲
by
kortex
4y ago
I'm not sure Raft is the best distributed consensus algorithm for the situation of a global, unstable, frequently-partitioning network. I think it is in its niche when leaders are running on fairly stable networks (>1-2 nines), an
803.
▲
by
kortex
4y ago
In the majority of cases: Absolutely. That is basically the direction things have gone with "just docker build the image and redeploy". The amount of frustration dynamic linking causes is just not worth it in today's day. I t
804.
▲
by
kortex
4y ago
> while those Marvel effects are, well, boring by now. They have no wow effect (we see them in almost every single modern day movie), the convey no emotion (difficult to properly act, I think, when you are in front of a green screen and
805.
▲
by
kortex
4y ago
This is exactly the sort of thing I've been looking for. Not sure how production-grade it is* but definitely gonna use it for some scripts and data processing. I love python, most of all its ecosystem, and use types extensively, but it
806.
▲
by
kortex
4y ago
We have a 50kloc all-python backend, with very high (>90%) type integration (that last mile is hard). I've done pretty big (thousands of loc) refactors and it's pretty painless. Night and day compared to the pre-typed python da
807.
▲
by
kortex
4y ago
Use pydandic for serde/IO validation, and mypy --strict. And minimize cheating e.g. Any. I think you'll find it extremely stable and a totally different beast than usual python.
808.
▲
by
kortex
4y ago
We had that, it was called Windows 95 and you got viruses by merely connecting the computer to the net.
809.
▲
by
kortex
4y ago
It does, but diesel is more expensive in most places (even accounting for better energy density), due to the structure of US refining industry. This sets the stage, and familiarity continues the trend. More people drive gas, so more gas veh
810.
▲
by
kortex
4y ago
How is that any different? Sounds like "dark matter was introduced because, previously, all other matter interaction was pulling on something ". It walks invisibly but quacks like matter (lensing, galaxy geometry, etc) so we call
More ›