HN user

stinos

5,941 karma
Posts31
Comments2,387
View on HN
prefix.dev 3mo ago

Channel Hosting on Prefix.dev

stinos
1pts0
www.bbc.com 2y ago

Naples sits on volcanic monsters – and one of them threatens to consume the city

stinos
14pts1
www.nytimes.com 2y ago

On This Nature Preserve, Farmers Are Welcome, If They Follow the Rules

stinos
2pts0
en.wikipedia.org 4y ago

List of Sausages

stinos
1pts0
watson.brown.edu 4y ago

Summary of Findings of the Cost of War Project

stinos
1pts0
www.thelancet.com 5y ago

6-month neurological and psychiatric outcomes in 236 379 survivors of Covid-19

stinos
5pts1
github.com 5y ago

aqtinstall: Another (unofficial) multi-platform Qt CLI installer

stinos
1pts0
github.com 8y ago

Micropython code to implement a GSM mobile phone

stinos
135pts19
blog.axosoft.com 9y ago

Gitkraken 2.6: new and improved fuzzy finder

stinos
1pts1
www.plant-e.com 9y ago

Plant-e: generate electricity from living plants

stinos
2pts0
www.technologyreview.com 9y ago

Neural network learns to identify criminals by their faces

stinos
3pts3
www.sciencealert.com 9y ago

Two more classic psychology studies just failed the reproducibility test

stinos
24pts0
www.sublimetext.com 10y ago

Sublime Text Dev Build 3116: new show_definitions functionality

stinos
1pts0
blogs.msdn.microsoft.com 10y ago

Daily NuGet updates to prerelease Microsoft C++ toolset

stinos
1pts0
stackoverflow.com 10y ago

I have coded an if statement spanning a few thousand lines

stinos
13pts0
news.ycombinator.com 10y ago

Ask HN: Python as Matlab replacement, where to start?

stinos
3pts4
www.theverge.com 10y ago

Some teens can't tell the difference between Google ads and search results

stinos
6pts0
www.ecf.com 11y ago

How the Dutch love for cycling is benefitting the nation

stinos
1pts1
programmers.stackexchange.com 11y ago

Do objects in OOP have to represent an entity?

stinos
1pts0
www.minds.com 11y ago

How aspartame became legal (2013)

stinos
4pts3
en.wikipedia.org 11y ago

Refrigerator Death

stinos
1pts0
www.coop.se 11y ago

Human exposure in pesticides from food [pdf]

stinos
2pts0
herbsutter.com 11y ago

Why was implicit int removed?

stinos
1pts0
www.kickstarter.com 11y ago

The WiPy: The Internet of Things Taken to the Next Level

stinos
4pts0
news.ycombinator.com 11y ago

Ask HN: Which self-hosted email solution do you use?

stinos
4pts5
www.kickstarter.com 11y ago

Machine Vision with Python

stinos
2pts0
blogs.msdn.com 11y ago

Why does CreateFile take a long time on a volume handle?

stinos
1pts0
news.ycombinator.com 12y ago

Ask HN: Why doesn't 2048 have a '1' tile?

stinos
2pts2
cpptruths.blogspot.be 12y ago

Functional programming first principles in C++14

stinos
1pts0
share.banoosh.com 13y ago

31 Dead in Baghdad bombings and it's not even on the front page

stinos
12pts2

Even without this performance hit, an often used way for implementing 'auto scroll to top/bottom' is to first check if there's no other stuff coming in before starting to actually scroll. This goes unnoticed by the user but drastically reduces the number of updates (and in this case, number of calls to scrollHeight) needed when a lot of data is coming in in batches. Principle is like: receive message, add to buffer and start timer of like 50ms. Upon timer tick copy everything from buffer (which in the meantime can have accumulated more data) to rendering and only then update scroll.

If you haven't been thinking deeply about memory management and concurrency, you won't be able to understand, no offense meant

I do think about that, when needed. My point is that these containers can be 'good enough' in places where it doesn't really matter, not that they're always the go-to thing. E.g. I really don't see any issue using a map as part of a configuration type of object which gets read from args or json and which only gets used once at application start.

and even std::map, std::unordered_map, even std::vector (!) suck

It's really hard to take your comment serious because of generalization like this. Maybe they're not usable for your particular usecase but that doesn't mean they suck. Just like there's a 'million' ways that C++ sucks in your book, there's a reason there's millions of lines of code out there where these containers are valid usecases and hence work without issues whatsoever nor a need to replace them with something else.

Arguably, the void* does that as well?

Sort of (I mean: seeing void* and a size probably means 'arbitrary sequence of bytes' or something like that, but well it's void* so it can be like anything whereas with std::span you get more of a hint what's going on just based on the type), but not at the callsite which is what the author is referring to when it's about reinterpret_cast.

I think the point is that it adds security, which the other options don't

Imo span also does that to some extent, but already when writing the code and not afterwards in e.g. static analysis. E.g. if I get an std:span<const char> I'd have to do counterintuitive things to misuse it. Annotating a void* still leaves it a void* which I then need to cast to char* if I think that's what it is intended.

Don't get me wrong: I've written my fair share of void* but these days I really feel like there's almost always a better thing which can be used instead. Though I do admit that since I've written and consumed a lot of code with such alternatives I'm not hindered by readability/apparent complexity of it anymore but I understand that's not the same for everyone.

Why should people complexify and uglify their C++ code with the uint8_t pointer (or std::byte), when void* works just fine??

Fair point (although to be honest: 'complexify' feels a bit of an exaggeration here to me), but the answer to this why is simple: document and express intent clearly. The compiler gave you an error first such that you're forced to consider what you're doing. Any seasoned C++ developer seeing this knows what this reinterpret_cast means.

Wow. With std::span the complexity-meter bumps in the red zone and goes even higher!

Same remark: yes, it's a bit more text to read, but again: to me (and many others I'm guessing) this clearly expresses intent. I also do not find it particularly hard to read. I mean, it's C++, you're likely going to encounter templates at one point or another, except in super specific software perhaps. But no-one also ever argued the C++ learning curve was easy, and trying to make it easier by refusing to use features which were added for good reasons and instead going back to constructs which are the very source of those reasons seems a bit backwards.

As a nice addition, if you use SAL annotations, the function could be decorated a bit to help code analyzers detecting memory bugs

Some might also say it complexifies and uglifies the code. And in any case makes it non-portable on top of that.

Is 'frame drop' a common term for latency? Dropping frames means something else entirely to me.

Anyway: you can calculate things for your particular rendering framework all you want, that only tells you when that software considers something visible, and you're still missing the extra frames the GPU driver or the monitor itself might add.

In the end total latency can ime only be measured accurately by measuring both the time when you send your 'show' command and measuring when the thing actually becomes visible (photodiode on the monitor, or one of those expensive monitors which can e.g. output a TTL signal upon seeing a certain pixel value).

I get that completely. I hardly ever just listen to any EDM. Technical death metal on the other hand I probably enjoy more listening to at home than going to shows because often the sound quality at shows is just never as good.

But I was talking about partying: there's a fair share of EDM I can party to without any drugs. Goa trance is the main one btw. And I still get the feeling of connection with the rest of the crowd.

There's a huge variety of electronic music styles. I'd really recommend trying some without the substances. Maybe the extremes are your thing? Or the highly melodic euphoric ones? Or dark stuff? Etc..

The nice thing if you find something is that it's also sustainable - as in: can do this for the rest of your life - which at least for me is definitely not the case with mdma.

Amongst the money and power seeking it definitely is but I'm not sure how prevailing that really is among the general population. I think for starters many don't even realize there's a biodiversity crisis (doesn't exactly appear on mainstream media that often, plus there's the shifting baseline). And those that do realize there are some issues might give a damn but don't know what to do about it.

Anyway: if there's anything I'd weep about it's that measures like these are needed in the first place. Far too little, far too late. But to be honest I stopped weeping and just do whatever I can personally such that the day I die I can at least have some peace with my life.

both times absolutely amazing. Highly recommended.

Saw them last year in Brussels. And while I agree with this and would go again and would recommend it to others, the side note for me is: I've listened to a lot of electronic music old and new and for my personal taste almost everything Kraftwerk makes is on the mediocre side. I'd never play it at home to listen to. But to see them in concert with pretty nice visuals and at the same time realizing they basically pioneered all of this 50 years ago does remain sort of mindblowing.

Surprisingly, The Netherlands is missing on this map too.

Very strange indeed.

It's agricultural output is insane for a country with its surface area.

Isn't that, just like in Belgium, mostly so for meat and derived products? Which also happens to be one of the worst situations (of natural food production) ecologically: grow and import a ton of corn and soy, export again, and in the meantime all the pesticides and methane and nitrogen and manure etc are left in your country.

So you supplement with non natives that provide something

I get the sentiment but tend to I disagree. Maybe some very specific species might benefit somewhat, but in general the principle makes little sense. Whatever native fauna there is in your area spent thousands of years in relationships with other native flora and fauna. So not just plants, also the soil life, the combination of plants, the terrain variation and so on. Hence replicating that as close as possible should be what works best. Which a far as nectar/pollen goes means not a single species but a combination providing it throughout the seasons. Whereas 'long blooming and nectar rich' completely ignores specialist insects which only get nectar and pollen from one particular species or group of species, insects laying eggs on specific species only, and so on. Butterfly bush is considered a McDonalds for insects, and that's actually a pretty good metaphor. Red valerian is in the same ballpark.

Pesticides form the backbone of crop protection. Without them, we're looking at at least a 40% reduction in global yield

Such numbers might be ballpark correct, but I think the "without them" here literally means "if we take current industrial agriculture and simply drop pesticides" i.e. without any other change. Pretty obvious that yes, doing so will easily get you to numbers of that magnitude.

So it's a bit strange not considering the various root causes of what requires those pesticieds in the first place: monocultures on dead soil and nothing which even begins to resemble a normal ecosystem in sight. Those causes happen to be exactly among the causes of the massive insect/more general biodiversity decline we're witnessing. Along with pesticides, sure, but habitat loss is likely an even bigger factor.

So while those biopesticides are probably a net win over what is used now, it's rather unclear if they'll have a meaningful impact on that decline. Which is why reports on solutions for the decline also always include adressing at least part of the root causes, like partial shifts back to landscapes which are a mix of nature and agriculture. Where there's at least a bush/tree line between fields, for instance. Which also helps keeping certain pests in control.

If it is really, really safety critical

Your suggestions should be fine for hardware failure but I'd be more concerned about software failure: what if a bug in your software makes it unresponsive and stuck in the state with the flow open? Maybe a watchdog or some other system running in parallel checking for a heartbeat or a max amount of time water can be flowing?

Author is installing Google Play Services it seems, wouldn't that work around this?

In any case, for me this also sort of defeats the purpose: I'd rather break free from Google and Apple, not just (stock) Android and iOS.

For me 100% brightness is way too much when inside even during the day. Maybe the monitors I have are exceptionally bright to start with, which I doubt, but whenever I get new monitors I usually put them down to about 30-40% for usage during the day. Which is the level which to me makes it looks as if white on the screen roughly matches a white wall in a similar location in the room. This just feels the most natural and least fatiguing, probably because looking at the screen or surroundings hardly changes pupil size. Which I confirmed with a research-grade eyetracker.

Eat Real Food 7 months ago

6oz of beef is only 44g of protein

It's their breakfast. Chances are rather small they don't get any protein intake for the rest of the day.

NewPipe or Invidious

I've bee trying these and alternatives in FF via LibRedirect for years. I keep on wondering if it's just me but I have to babysit the setup and cycle through instances every so often.

I would love to transport my motorcycle, building materials

Something like a Peugeot Partner (just to name something) + a trailer does all of that. With the added benefit that without the trailer attached it's a fairly normal size.

I don't agree it is 'almost worse' than the slop but it sure can be annoying. On one hand it seems even somewhat positive that some people developed a more critical attitude and question things they see, on the other hand they're not critical enough to realize their own criticism might be invalid. Plus I feel bad for all the resources (both human and machine) wasted on this. Like perfectly normal things being shown, but people not knowing anything about the subject chiming in to claim that it must be AI because they see something they do not fully understand.