HNHacker News
TopNewBestAskShowJobs

HereBeBeasties

316 karma · joined March 30, 2016

submissionscomments
HereBeBeasties··on Trump Supporters Storm Capitol
The British media is certainly using that word in places.
HereBeBeasties··on An iOS zero-click radio proximity exploit odyssey
Although it is certainly challenging, you shouldn't spend only an hour reviewing a 3,000 LoC review, unless most of it is trivial refactoring, especially if that code is security-critical and handles untrusted input. That's only 1.2s per line of code. No chance you have good quality control with that amount of attention.

If it's taken someone a whole fortnight to write it, you should expect to spend at least half a day reviewing it, IMO.

HereBeBeasties··on Database in Go is 6x faster than the database in Rust
More to the point you are comparing something that's only just been released and probably hasn't been tuned yet against something that has. The title on this post is extremely misleading. It should read "mature timeseries storage code outperforms immature timeseries storage code". But then, I guess no one would click on that?
HereBeBeasties··on Microsoft urges users to stop using phone-based multi-factor authentication
I strongly recommend Aegis on Android. Encrypted backups of the TOTP config, so you can easily recover it all if you lose your phone without having to reset everything, plus biometric support to unlock it.
HereBeBeasties··on Astonishing Performance of .NET 5
I also write both Go code and C#, amongst other things. I find your assertion that C# has lots of ceremony and ends up with more code than Go frankly pretty strange.

Go is well known for having laborious error handling (prompted by a lack of exceptions) and masses of boilerplate and verbosity precipitated by the lack of various other features, the most glaring of which is an absence of generics. This means implementing custom data structures is generally an exercise in copy paste, or ignoring type safety.

Things like the lack of extension methods, JSON and YAML serialisers that require explicit annotations everywhere instead of conventions, the lack of OO/polymorphism, no ternary operators, null chaining operators, etc. etc. also contribute to the verbosity.

Simplicity is good, but the lack of expressivity and the need for such boilerplate is bad. A pretty poor type system makes it worse. Go has many strengths, but I massively prefer C# for the majority of non-trivial situations.

Regarding performance, it depends heavily on what you're doing. For example, Go's allocator and GC is designed to optimise for low pause latency, whereas dotnet is optimised more for high throughput and good cache coherency. Given the extent to which most apps are stalled waiting for memory, the lack of good cache coherence in Go allocations, and the lack of a generational GC can absolutely decimate performance. DotNet is capable of allocating at 25x the speed of Go, for example.

Go read https://medium.com/servicetitan-engineering/go-vs-c-part-3-c...

HereBeBeasties··on Build products that are hard to live without
I never understand why people rave about Dyson vacuums. I had one of their mid-range ball uprights, my mother in law has a handheld one. They're not lightweight, but not built solidly. They lose suction over time and need taking apart beyond what the manufacturer intended to clean them properly to attempt to restore their original power, worrying me every time that their various tiny crappy plastic clips will snap off and render the whole device useless. I got fed up of mine and bought a Miele, and it is better in absolutely every way.
HereBeBeasties··on AWS Controllers for Kubernetes
See also KubeForm - https://kubeform.com/ which will do a lot of this already, via Terraform.
HereBeBeasties··on Ask HN: What Will Replace Smartphones?
Asking in 2020 what will replace the smartphone feels like asking in 1950 what will replace the motor car.

Augmented Reality contact lenses are the modern equivalent of 1950s predictions of nuclear-powered flying cars.

I don't think smartphones will really be replaced for forty years or more. It sounds like a long time but it really isn't. We've not come that far since the original iPhone. And that itself wasn't that much of a leap from various form factors five to ten years earlier - just a lot slicker in terms of UI. So phones will just get better. One can easily imagine the battery tech improving, perhaps practical rollable or foldable screens, lighter weight, etc. Fundamentally one wants something that easily fits in a pocket (current modern flagship phones are too large), provides a good display for interactive content and allows silent text and voice input.

I think cars, phones, tablets, laptops, desktop computers and TVs will all converge more in terms of control interfaces. There's plenty of evidence of this already with Android Auto in things like the new Polestar 2, the decline of custom TV software in favour of Android/Amazon's FireTV OS, etc. That's felt around the corner for years now, but feels like it might finally happen soon.

Evolution not revolution, in other words.

HereBeBeasties··on Dividing front end from back end is an antipattern
Is it not possible to be highly competent at playing the piano and also at carving wooden sculptures? Or not possible to be a master of C++ _and_ CSS? That just doesn't make any sense.

Perhaps your views are more a reflection on people getting pigeonholed at large companies, or otherwise choosing to specialise? Or something like that?

I personally think it's hard to be a _really_ good frontend dev without a chunk of more general development experience. What wider experience will you draw from to solve hard frontend problems otherwise? If your Angular/React app isn't performant enough because of the computations it needs to do or allocations it needs to make, how big is your mental toolbox to fix that if you haven't done more general backend dev work? It's all just software, ultimately.

HereBeBeasties··on Websites that look like desktop GUIs
I found it concise, well-explained, informative and helpful. Hopefully many other people learned something useful from it. The author of the original site certainly got value from it given their reply. You don't always have to sugar coat code review feedback with a meaningless "This is awesome but..." - it's usually disingenuous at best. Surely as hackers we should all appreciate good, useful feedback like this?
HereBeBeasties··on Amazon establishes new Counterfeit Crimes Unit
I wrote a detailed, solid, accurate 1 star review of a child's digital camera which clearly didn't contravene their guidelines. Didn't meet their guidelines, wouldn't publish it.

Amazon used to be great. Nowadays it's full of fake reviews and dodgy secondhand stuff being sold as new.

HereBeBeasties··on Show HN: Koyeb – Simple serverless processing workflows, on any cloud
Firstly, you barely ever do.

Secondly, unless you're selling compiled software for others to configure, there really is no difference between config in config files and config in code, except that the former does not let you build such meaningful and useful abstractions. You're presumably delivering it all into production via CI/CD anyway, so what difference editing a config file vs. some actual source code, besides the lack of real type safety and IDE assistance?

Pulumi have figured this out.

(And I suspect that if your end users need to configure your software's use of Spring's Dependency Injection in XML config then you are probably doing it wrong.)

HereBeBeasties··on It’s OK for your open source library to be a bit shitty (2015)
Yes, dates are very complicated. But that doesn't stop pretty much every modern language from having good built-in support for doing this, because it's such a totally common task. JavaScript is such a mess. It doesn't even support integers, for crying out loud, let alone decent date/time/timezone handling. That moment.js is the most popular band-aid to fix this, despite it having a nasty gotcha API that mixes mutable and immutable functions/types in confusing ways just rubs salt into the wound. Heck, you can't even compare two moment dates with inequality operators without either casting them by prepending a plus sign, or calling functions - it just silently does the wrong thing.
HereBeBeasties··on Show HN: ZoomerBackgrounds – community-sourced virtual video backgrounds
For Windows, Snapchat have a standalone virtual cam called Snapcamera https://snapcamera.snapchat.com/

There are green screen plugins for that. You could chain Snapcamera's virtual cam output into OBS and use OBS 's chromakey filter to underlay whatever other content you like. Y I u can then output OBS to another virtual cam output for use in Zoom or wherever else via the Virtualcam plugin for OBS.

It'd be really nice if someone would make a nice OpenCV virtualcam output so one could drive all this from a (relatively) simple Python script.

HereBeBeasties··on I've been writing TILs for 5 years
https://probot.github.io/apps/pull/ to keep forks up to date automatically.
HereBeBeasties··on Bank of America: 58,000 small businesses ask for $6B in loans since 9 a.m
I don't understand. Can't we just turn the fuel supply of a rocket off mid-flight and then turn it on six months later and it would just continue on the same trajectory as before?
HereBeBeasties··on MessagePack: like JSON, but fast and small
What the original poster means is that if I go JSON.parse(...) then how does that know to give me an object with a Date type instead of a Number? Answer: It can't.

This is a frequent gotcha with Typescript, where even if your type is declared with a Date field, Javascript won't care when it deserializes it, as that type information is all erased and not available at runtime.

(Also, Number in JS being floating point and all, it lacks the integer precision for high resolution timestamps - if you start serialising 64 bit timestamps and expect a JS-style runtime to do good things with them it doesn't end well.)

HereBeBeasties··on How to Write Usefully
I found the whole thing to read like a set of bullet points. Fragmented, rather repetitive in terms of ideas and with no flow. Hard to slog through, to be honest.

The author seems to have expended great effort on terseness, writing in very short sentences which artificially forced him to start more of them with coordinate conjunctions than feels comfortable to me. It did not make for an easy read and all felt rather too self-conscious. Good writing should focus me on the ideas, not the annoying syntactic structure of the writing.

I didn't get on with it.

HereBeBeasties··on Activate this ‘bracelet of silence,’ and Alexa can’t eavesdrop
Bugs notwithstanding, this is just FUD. You can go to the Amazon Echo app and listen to all the recordings.

I'd be far more worried about the invasion of privacy caused by it listening to everyone's shopping lists.

HereBeBeasties··on Signal is finally bringing its secure messaging to the masses
It sounds like you are looking for Matrix.org (and Riot.im)
HereBeBeasties··on I found a WhatsApp security flaw that allowed hackers to read the file system
That obviously depends on what your Electron app wants to do.

Let's say you're writing an IDE in it. How would you invoke compilers & debuggers, cache filesystem/type information, state, etc. without breaking out of the browser sandbox somehow?

HereBeBeasties··on A new hash algorithm for Git
You're assuming that 100% of the source code matters, but most source code has comments. Some has a lot of comments (boilerplate headers). Delete all the comments and superfluous whitespace, add nefarious code, put in a comment in the remaining bytes for the sole purpose of causing a hash collision (likely plenty of bytes to play with).
HereBeBeasties··on LInQer – C# Integrated Queries ported to Javascript
You have the wrong end of the stick. The author means that he's ported it to achieve better performance than using Javascript's built-in map/filter./etc. operators because those do not lazy-evaluate and do not chain together efficiently, creating an array at each invocation.
HereBeBeasties··on Volkswagen exec admits full self-driving cars 'may never happen'
Umm, that is is point though - with autonomy the cars presumably won't break the law and stop where it's technically illegal for 30s to pick you up. They will presumably need to find somewhere legal to park to do so.
HereBeBeasties··on Volkswagen exec admits full self-driving cars 'may never happen'
If cars could assemble into close convoy trains on multi-lane highways / motorways / autoroutes / whatever, then it would probably also solve electric car range for many people - you only care about range on relatively long distance journeys, and you're likely to be doing those on major multi-lane carriageways. If you could split the air resistance between a bunch of other vehicles then you'd add considerably to the range. I similarly don't understand why we're not trying to solve that instead. As you say, it seems easy compared to full autonomous driving.
HereBeBeasties··on Show HN: Haystack – Visibility into How Software Teams Works
This isn't so much "show Hacker News" as "tease Hacker News".

Your web site shows me diddly squat. Do you actually _have_ a product? Where's the video walkthrough, or at the very least, some screen shots?

If your product were genuinely useful / insightful (which is very hard to do in this space) then we might buy it. For 400 seats. But it looks like vapourware to me right now. Come back when you actually have something to show the community.

HereBeBeasties··on The Build is Always Broken
If you use webpack's hot reloading properly with something like React, then you get to keep your state - it's only the functions that get swapped out. So it's actually exactly what you describe, and it's brilliant - so much more productive. This isn't even all that new (in web dev terms) - I had this working probably four or five years ago now on a project.
HereBeBeasties··on Terrain rendering algorithm in less than 20 lines of code
They didn't. It was light-path based, so similar to ray tracing. It'd also do trees, mist, etc.

Check out https://m.youtube.com/watch?v=48KtJtDqkaM for a 4K Vista Pro animation render!

HereBeBeasties··on Terrain rendering algorithm in less than 20 lines of code
Didn't they just? Microprose and Digital Integration in particular were the masters back then for this stuff - I remember the Project Stealth Fighter (C64, ZX Spectrum in around 1987) and then the Tornado (PC) manuals with particular fondness, covering laser guided toss bombing and all sorts of stuff.

I'm amazed to discover that Tornado has gone open source and is still being modded by people: http://www.moodurian.com/

https://archive.org/details/Project_Stealth_Fighter_1987_Mic... for another blast from the past.

HereBeBeasties··on Ask HN: Are books worth it?
You can get the content of most films from a two-minute read of a plot summary. Is it thus pointless to watch films?
← PreviousPage 3 of 6Next →