6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions
Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.
Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view
comment 4y ago · link · parent
I don't even have to look outside the circle of people I know in person to have seen this. Googling for Windows not working with $X specific laptop instantly reveals quite a treasure trove beyond the people I know, where $X can be pretty much any Windows laptop. Everything from fingerprint readers no longer working to even simple things like the function key hotkeys no longer working.
Issues with sound drivers not working are far from unheard of on Windows laptops.
You definitely seem to have missed their point, and, in my opinion, you're being unnecessarily antagonistic.
comment 5y ago · link · parent
Under optimal conditions, maybe you’re right… but I would personally lump the desire for tons of motion blur in with the nostalgia that causes people to use 24 fps in the first place.
It’s not like people originally wanted to shoot at a noticeably low frame rates… it’s just what they had to do. Then it became a standard that resisted change. Now people artificially restrict themselves to be bug-for-bug compatible with old technology. In fact, a lot of silent films were shot at 16 fps. Why does no one clamor for the return of 16 fps? Arguably, 16 fps is 33% more cinematic!
There are plenty of reasons that I’m not a professional cinematographer… but for the same reason that no one would prefer to watch a film captured in 10 fps, it follows logically that 24 fps is not actually “better” than higher frame rates. It’s just what people have been taught to see as better through experience when they contrast traditional, high budget films shot at 24 fps with low budget TV shows that were broadcast at 60 fps. It’s probably going to be decades before people unlearn this low frame rate preference, but I predict people a hundred years from now will be far less impressed with 24 fps footage than some people today.
I have plenty of other unpopular opinions available too. :P
Regardless, it doesn’t seem beyond belief to imagine that someone could combine the 5 frames of 120fps -> 24fps into individual “long exposure” shots that produce a similar motion blur effect as a single frame taken with a slower shutter. The necessary data is (mostly) all there, if someone took advantage of it. A well-proven technique similar to this is used in astrophotography to create artificially longer exposures, but it is combined with an alignment step to avoid the motion blur of the Earth spinning relative to the stars, which is why astrophotographers don't just extend the length of the exposure, and why they bother with combining multiple exposures. Obviously, applying this technique to create motion blur would mean skipping the alignment step, at a minimum, but this is probably one of those things that would be relatively simple for a properly trained neural network to do a good job with smoothing out, to avoid the gaps of motion blur between the frames that are available... each of which would likely be individually shot with a shutter speed faster than 1/120 anyways.
comment 5y ago · link · parent
Based on some googling, various sources indicate that 35mm film has a usable resolution somewhere between 4K and 8K video, so we're arguably reaching the limits of what we can extract from it (without consideration for "AI upscaling" and such).
Cinema grade digital cameras, like the RED V-Raptor[0] (MKBHD behind the scenes[1]), can now shoot 8K footage at 120+ fps with 17+ stops of dynamic range. As far as I can tell, those specs are objectively more capable than what you can get with traditional 35mm film. It has taken quite awhile for digital to outclass film across the board, but I think we're at that point now, and the results from these cameras are spectacular[2].
At this point, it's probably a question of how much storage you want to use and whether you have enough light in each scene to shoot at high frame rates like that. (120 is an even multiple of both 24 and 30, so you can always produce 'cinematic' frame rates just by throwing away other frames, without any stuttering, but then you have the option to remaster into higher frame rates in the future if low frame rates fall out of fashion, and you can easily add slow motion effects in post, as long as the final frame rate is intended to be less than 120.)
I'm far from a videography expert, but it is something I find interesting.
[0]: https://www.red.com/v-raptor#section-vr-tech-specs
comment 5y ago · link · parent
I clicked on that link hoping to see one or two pages of info that made it clear how the whole system worked with more detail than you gave, but not a whole book of minutia that I don't have enough reason to care about at this point in the discussion.
comment 5y ago · link · parent
Tons of very "interesting" attributes like this:
// prevent inlining into main to decrease JIT time to generate main
[SkipLocalsInit][MethodImpl(NoInlining)]
[SkipLocalsInit][StructLayout(LayoutKind.Explicit, Pack = 32)]
[SkipLocalsInit][MethodImpl(AggressiveOptimization | NoInlining)]
[FieldOffset(32)]
and tons of "unchecked" blocks.Not to mention that the entire file is using explicit vectorization, which I consider to be a very high degree of optimization -- tons of software never bothers to implement explicit vectorization, and does just fine.
If all of this is "nothing out of the ordinary", then "ordinary" C# has changed a lot since I last spent much time with it.
[0]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
comment 5y ago · link · parent
People say this, but they never point to any large, popular projects that demonstrate it.
If you write any serious project in Rust, you'll quickly realize how unsafe "modern" C++ is. There's just no comparison. I'm happy for people to pick whatever memory safe language meets their needs, and most of those are garbage collected. Garbage collectors are fine for most software, but Rust exists for situations where they aren't fine.
> C was designed to move from asm to something highlevel. C made possible to write larger projects than in ASM. That's all. There is no absulute measurement of project size, only relative: larger->smaller. Go goes to "smaller" direction compared to C++.
By your definition, everyone should be writing Haskell, because a single line of Haskell can take tens of lines of C++ to express the same code. Haskell is immensely powerful in this way.
comment 5y ago · link · parent
No… that’s not Go’s GC that you have experience with. I don’t know what language you used that you confused with Go. GC pauses in Go are notoriously tiny, since Go prioritizes consistently low latency. I’ve worked on many Go projects, and GC is not something that I worry about.
> Feels like C in terms of lack of templates
Are you seriously implying that C was not designed for large projects? That it was designed for tiny projects only? Because that’s not what history shows us, and C is used in massive projects like the Linux kernel. (Which causes innumerable CVEs related to human errors that C doesn’t attempt to prevent, unfortunately.)
It also doesn’t matter how fast you can churn out code if it’s Swiss cheese full of memory safety vulnerabilities. No one has ever pointed me to a popular C or C++ project that hasn’t been rife with vulnerabilities that would have been trivially avoided by using any memory safe language… so it’s a fair assumption that any C++ that you’re churning out has problems.
You mention Rust, and that’s a perfectly valid option if you have such a passionate hatred of garbage collectors. But, using C++ for a web service in 2021? No thanks. We need to be minimizing attack surface these days. (Memory safe languages can’t prevent all vulnerabilities, but neither do seatbelts. You should still wear a seatbelt when driving. Unbuckling doesn’t make the car go faster, and seatbelts do prevent certain classes of injuries.)
comment 5y ago · link · parent
Absolutely not. It is an opinionated language that is designed to make it easier to build large projects.
Go is used for tons of large-scale web backends. It's a far better choice for writing network-connected services than C++, let alone C!
> Big thing about GO is lots of libs available for everything (but in that view Python is better).
Except that Go runs circles around Python, just like most compiled languages.
Based on what you've written, I don't believe you have any experience with Go, so why are you writing large comments about it?
comment 5y ago · link · parent
Yeah, there are a lot of relatively unknown projects that keep going. Pharo (a smalltalk inspired language) is another example of such a thing that I've also never used.
comment 5y ago · link · parent
The C standard leaves a lot of UB/implementation specific behavior. Fully “standards-compliant” code that works on one compiler may behave in unexpected ways under another compiler, just due to differences in UB handling. And no, it is not trivial to write UB-free C code. Let’s say you are generating C code from your own programming language. Did you know that an infinite loop that doesn’t do anything might be ignored?[0] This materially changes the behavior of the input program in ways that most people wouldn’t expect. C can quickly go from “infinitely portable assembler for my cool new language” to “major source of confusion.”
That’s before even discussing compiler bugs, which will unintentionally break all assumptions of well-behaved code. Rust has run into (and submitted fixes for) so many LLVM bugs over the years that caused silent miscompilation. Complex software tends to have bugs somewhere, and a lot of compilers are complex.
The less trivial the C code, the more likely you are to run into compatibility problems between compilers. “Hello world” should reliably work everywhere, so that’s something… I guess.
But that’s just like… my opinion. If generating arbitrary C code and shoving it through arbitrary C compilers works reliably for you, then that’s cool?
I personally would want to see a large battery of tests that ensures the program code is likely to be working under each new compiler.
[0]: https://stackoverflow.com/questions/59925618/how-do-i-make-a...
comment 5y ago · link · parent
Which is completely different from assuming that emitted C automatically compiles and runs fine under any C compiler under the sun on any target platform, which seemed to be the implied assumption made by the person I was replying to. I definitely could have misinterpreted.
Regardless, my main point is that FPC already seems to support… pretty much everything, which is impressive. They’ve clearly done a lot of work on portability over the years.
comment 5y ago · link · parent
I'm skeptical that targeting C opens up any meaningful additional platform support beyond what FPC natively supports. Even relatively new and/or niche architectures like RISC-V and Xtensa appear to be supported by FPC.
(C code also isn't perfectly portable by any stretch of the imagination, so just having some random C compiler for your platform of choice and some emitted C code doesn't really guarantee that you'll end up with a compatible, working solution.)
I've never used Lazarus or FPC beyond just opening it up and playing with it in years past, but it is interesting how much that ecosystem seems to offer.
[0]: discussed in the first paragraph here: https://www.freepascal.org/
comment 5y ago · link · parent
comment 5y ago · link · parent
You can compare Form Energy’s 100 hour batteries to traditional lithium ion and see that Form’s batteries are 25x slower. That’s a valuable datapoint, and speaks to a limitation of Form’s batteries.
The time to discharge an iPhone battery at maximum supported output of the battery is entirely irrelevant to iPhones.
comment 5y ago · link · parent
Their claim is not referring to the raw battery materials. Their claim appears to be that they will be able to offer grid scale batteries for 1/10th of the cost of lithium ion, all in. Obviously, the drawback is that these batteries take over 100 hours to discharge and recharge, so they’re slow.
They are doing a pilot project for Great River Energy in 2023. That’s when we will know how real this product is.
Industry experts that I respect believe that Form Energy is very real, unlike all the vaporware that exists out there.
You can remain skeptical and dismissive if you want. It’s irrelevant to whether Form Energy succeeds or fails.
I haven’t seen anyone here saying that Form Energy has a 100% chance of success, and skepticism is warranted for any startup. Even if a battery startup has perfect battery technology, they can still fail for many reasons.
comment 5y ago · link · parent
I just love these "gotcha!" comments that pop up on HN so frequently. I'm having to explain what it means to summarize information.
Hashes aren't useless or meaningless, they just aren't a substitute for the full information if you need the full information. I'm sure that if you're a serious potential customer, you can contact Form Energy and get whatever detailed information from them that you need. Otherwise, you obviously only get the information they choose to disclose publicly.
Your desire for more information doesn't somehow make "100 hour battery" a meaningless statement. When you see the mpg rating of a car, that is a summary that has thrown away detailed test results that could tell you more about the fuel economy of the vehicle under various conditions. EPA testing involves multiple test "cycles" that represent different conditions, but you don't typically get to see the results of each cycle. People still like to see mpg ratings and compare them.
comment 5y ago · link · parent
They do say that. Quote from the article:
> at less than 1/10th the cost of lithium-ion
"100 hours" isn't an advantage for this technology. The advantage is the cost effectiveness. "100 hour battery" mostly means that it will take 100 hours to discharge one of these batteries (of any capacity) at the maximum discharge rate that the technology allows. Obviously that is a huge downside compared to lithium ion, which is able to respond to grid energy needs with much higher power density!
But it doesn't really matter, if the price is right. Long duration energy storage is all about lowering the cost per kWh by developing technologies that have lower power density in exchange for also lowering cost per kWh of storage. Lithium ion isn't cost effective for long duration storage right now.
Also, people in that industry know that surely no one would proudly advertise a "100 hour battery" if it weren't significantly cheaper than lithium ion on a per kWh basis, so the term "100 hour battery" also means (to the right audience) that the batteries have to be cheaper than lithium ion.
Whether Form Energy will succeed in their claims at scale is TBD. I hope they do well, because cheaper energy storage is immensely helpful for decarbonization of the grid.
comment 5y ago · link · parent
> Lithium ion can do ‘100 hours’ as well
Did you reply to the wrong person? I already addressed your entire comment several different ways in my original comment, and you didn't address anything I wrote in mine, as far as I can tell. Maybe I'm not the best at explaining things?
> 100 hours... of what?
Cost effective energy storage solutions that can discharge for 100 hours at maximum operating output. "Cost effective" is absolutely the key factor. Lithium ion is not currently cost effective at such durations. It is cost effective at about 4 hours, but some sources will say anywhere from 2 to 8 hours.
If you aren't familiar with a particular industry, it's perfectly logical for that industry's shorthand to sound like total nonsense. You (and most of HN) are not the target audience for a statement like "100 hour battery". Grid scale energy storage operators are the target audience, and they understand what that means. It means slow batteries, which also implies cheap, because no one would buy slower battery technology if it weren't a lot cheaper. Form Energy explicitly declares the technology to be 10x cheaper. We'll see if that holds up in reality.
Someone unfamiliar with computer science who overhears a conversation about "garbage collection" would likely be very confused. "Computers don't emit garbage! RAM is reusable, how could bytes of RAM become garbage?" But, obviously garbage collection is a real thing with computers, even if it sounds like nonsense to someone outside the industry who just knows enough to know what RAM is.
Here's an article[0] that talks about long duration energy storage, and they even mention Form Energy. Relevant quote from the article:
> Lithium-ion batteries have absolutely dominated new storage construction in recent years. But they rarely can deliver their full power capacity for more than four hours — that’s what people mean when they say “discharge duration.” Batteries technically can go for longer, but it generally costs more than it’s worth in today’s market dynamics.
One more choice quote:
> Batteries cannot yet compete with gas plants in providing prolonged power for multiple days. But a cost-effective 24-hour duration storage system could handle longer demand peaks, and a 48-hour system could do even more.
It's all about cost effectiveness.
[0]: https://www.greentechmedia.com/articles/read/so-what-exactly...
comment 5y ago · link · parent
It is a meaningful number... in the grid scale energy storage market. It's a term that summarizes many of the complex properties you mentioned. For a given energy storage technology, there is a certain duration that it tends to be most effective at. For traditional lithium ion batteries, that duration is about 4 hours. If you want to use lithium ion storage for longer durations than that, then you're making substantial sacrifices in cost effectiveness, utilization rate, etc.
Obviously one of the huge areas of research is long duration energy storage, to smooth over energy availability fluctuations that last weeks or months. Some might argue that Form Energy is addressing medium duration energy storage, and there isn't really any technology suited for true long duration energy storage yet.
If Form Energy's technology works out, then they're saying they've developed a battery technology that is 10x more cost effective than lithium ion on a per kWh basis, but that the technology cannot discharge as quickly as lithium ion, which makes it better suited for medium duration energy storage. You could do the same thing with Lithium Ion, it would just be cost prohibitive... 10x as expensive, supposedly.
What I've shared above is my understanding from following lots of news about green energy tech for years now, but I'm not an expert who can answer a bunch of additional questions... but your comment about 100 hours not being a meaningful number isn't accurate. It is meaningful to the target audience.
comment 5y ago · link · parent
I'm sure that for a few hours during the summer, the solar irradiance in London is probably 90% of what it is at the equator. That doesn't help most of the year.
comment 5y ago · link · parent
Starlink would probably work even better if they didn't have to deal with this restriction, but Starlink might not have been allowed to exist if they didn't design it to work this way.
comment 5y ago · link · parent
Given how slow DNS propagation is, rapidfire rewriting of CAA records as you failover to a different CA seems like a recipe for causing errors... which is the last thing you want as you're failing over.
I did a quick google search, and nothing indicated that Caddy will manage CAA records for you, which sounds very sensible to me.
comment 5y ago · link · parent
Based on documentation elsewhere on the site, it seems to clearly include all kinds of ACME certs, even wildcard, but I've never actually used ZeroSSL myself, as far as I can remember.
comment 5y ago · link · parent
Did you see this comment? https://news.ycombinator.com/item?id=27885851
comment 5y ago · link · parent
84 upvotes for the initial issue is substantial in a community the size of Zig.
comment 5y ago · link · parent
Except it's not the same. Zig also cross-compiles C code beautifully, and lots of Rust code depends on C libraries. That "one additional command" does not solve cross compilation to an equivalent degree as Zig.
Go code tends to avoid C because of the heavy penalty that CGo imposes, so the cross compiliation experience is usually good there, but for different reasons than Zig.
comment 5y ago · link · parent
No... it really is obvious. I've written quite a bit of C, C++, and Rust over the years, in addition to all sorts of garbage collected languages. I'm not writing this as an off-the-cuff thought. I've even written a similar comment before on HN about Zig's error handling. I've thought about this for a long time. It is just as obvious now as it was on day one.
The fact that the Zig team keeps resisting this is just mind blowing to me. "Penny wise, pound foolish" is my opinion. The actual runtime cost here would be so entirely negligible, but its absence is a major limitation.
> The advantage of this system is that the caller can decide whether error diagnostics are desirable or not. If they're not, then zig-clap doesn't waste cycles nor memory keeping track of the context in which an error happened. It's the best of both worlds in my opinion.
Instead, the developer has to waste mental cycles and memory keeping track of the context on every single function call. Strongly disagree on it being the best of both worlds.
For starters, every library has to decide whether they will support it or not. If the language doesn't make this a built-in part of the core error handling, then spoiler: they won't. They'll throw away all useful error context, leaving no option for the application developer to add it back. Once the context is gone, it's gone for good. You can't know what a library did to cause an AccessDenied error... you can't reach into the library and pull that context out of thin air. If every library is implementing this diagnostics pattern, then that's an equally strong argument for it to be supported at the language level. Either context is being irrevocably lost or developers are wasting time writing convoluted code. Either way, this is not the optimal solution.
I have experience writing code in a lot of languages... error context is extremely important, and the "waste" of CPU cycles and memory is extremely minimal for the benefit gained.
As I have hinted before, a compile-time switch to throw this information away could be a valid solution for the extremely-difficult-to-imagine situations where great error handling is unacceptably costly on performance... then it would be like Zig's "async" support, where the library developer doesn't have to color their functions based on how the end user will use it. They should return all the error information all the time, and the compiler decides whether to keep the context or throw it away and provide only the error "name". Yes, this would bring its own challenges, but seriously, this option to discard the context is completely unnecessary outside of like 8-bit microcontrollers, and probably isn't worth implementing. Just provide context all the time. Please... it's such a small ask.
Looking at the links you've provided, which you have also provided in past discussions here, that pattern is extremely painful. I cannot overstate how much worse that usability is compared to the regular error handling Zig provides, and so obviously no one will ever use it. It serves as a pattern for the most desperate situations, and as a way to handwave the lack of language-level support for error context, in my opinion.
comment 5y ago · link · parent
Until then, the lack of a great cross compilation experience out of the box is just a limitation of the Rust toolchain. It's an acceptable limitation in many situations, but I don't buy your repeated arguments on this HN discussion that it is unclear that this is desirable to fix. Clearly many people in this discussion alone disagree with your position, and my own anecdotal discussions with other developers in real life aligns with this discussion. YMMV, obviously.