Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 4y ago · link · parent

A bit offtopic: is it publicly known what sort of software stack camera manufacturers like Nikon, Canon and Sony use in their cameras?

comment 4y ago · link · parent

FWIW I got 30%+ Asians. The rest was White.

comment 4y ago · link · parent

As a European, to me US online banking and payments look like Stone Age technology.

comment 4y ago · link · parent

> No offense but you need to level up your empathy/reading skills then.

Can you deduce what went wrong from what he wrote?

> Your user feedback isn't going to be coming from the lead developer on a major product or a Comp Sci PhD or a highly talented software designer that can effortlessly (and for free) breakdown problems and suggest efficient and powerful solutions in a long-form report.

He doesn't need to suggest solutions. He just needs to communicate what happened. There is nothing in this mail about what he tried doing with settings - where he clicked and what he expected to happen.

> (and for free)

Goes both ways in this case.

comment 4y ago · link · parent

All I can take out from his complaints is that he doesn't understand settings. I don't know what he doesn't understand about them, what exactly is wrong with them. I'm not sure I would call that constructive.

Constructive would be something like: "I wanted to do X, so I tried doing Y, I expected Z to happen, but instead got W".

comment 4y ago · link · parent

Makes sense.

comment 4y ago · link · parent

The author of the mail did not provide constructive feedback. It's just a personal attack.

comment 4y ago · link · parent

Except ^W performs a completely different action. I can't count the number of times after switching from a terminal to Emacs within a couple of seconds, my muscle memory still not updated, I hit ^W only to discover I've just deleted 3/4 of the file.

comment 4y ago · link · parent

When I code, I usually don't listen to music. I rarely listen to music generally. But when I do code and listen to music, I often sing along. Typing lyrics into code? Never happened to me.

comment 4y ago · link · parent

Fair enough.

comment 4y ago · link · parent

> It's generally easier to try and force the equation in favor of doing exercise rather than eating well.

That's the first I'm hearing this opinion. I'd expect the opposite. It's definitely the opposite for me, because eating healthy is pleasurable, tasty. I'm a hedonist, so I love eating healthy. I do exercise everyday, with an odd missed day here and there, but much of the exercise is a battle of my will to keep pushing, soaked in sweat. Additionally, for exercise you need to find extra time in a day, whereas with food one way or another you're going to need to do that anyway.

comment 4y ago · link · parent

Yes, by "fit" I meant "not fat". And if a person doesn't lose weight from the exercise, then I'd say it's a strong indicator their exercise isn't an Olympic level Michael Phelps training, which would give them the metabolism to counteract the effect of junk food.

Even with heavy exercise, I have a strong suspicion your doctor wouldn't recommend you a diet like that. Just because by some miracle it works for one guy (and who knows what the consequences are going to be in a couple decades), doesn't mean it's good advice for the general populace.

comment 4y ago · link · parent

Also, there is a group of people who decide to get fit by going crazy with exercise, but continuing to eat junk food. Diet is several orders of magnitude more important than any exercise, yet some people go to the gym everyday, followed by eating two burgers, followed by a pizza the next day etc. etc. And then they look in the mirror surprised they're not getting better.

comment 4y ago · link · parent

I would love that feature for cooking! It's such a no-brainer.

Edit: it seems there exists an app for that[1]. Gonna try it tomorrow.

[1]: <https://apps.apple.com/us/app/easy-cooking-timer/id492224774>

comment 4y ago · link · parent

If you want to build web services, I'd go with Go. It has an http library in its standard library. It generally has a bigger standard library. Rust has a bigger stdlib than say C++, but it's still pretty anemic by the standards of modern languages. Go also compiles a lot faster than Rust, which is a major point.

If you like functional programming, or want to write embedded software, or high-performance software, I'd go with Rust. All those things are a lot easier in Rust.

Personally, I use Go for scripting and Rust for big projects, because Go compiles fast enough, has a nicer stdlib and dependency management than Python; while for big project my natural tendency to think functionally would make it too annoying having to translate simple concepts into programs twice as long as they need to be, expressing what they're doing very indirectly. But I don't write web services, so that's a different story.

comment 4y ago · link · parent

gay and queer are not offensive even outside the community. It is acceptable for other people to use them. I haven't heard fag used non-offensively even inside the community, but maybe that's what needs to happen. Personally, I think it's great and that's what should happen to all slurs. They mean after all just "X but bad". When you turn them into just "X", you disarm the offenders and so the trend loses its memetic ability to replicate throughout tribes, and so people are less likely to denigrate only to assert their position as part of a tribe.

comment 4y ago · link · parent

Adobe used to be such a behemoth. They didn't switch to subscriptions due to unprofitability. They just wanted more and more. Same with Microsoft. They're a behemoth switching to subscriptions now. But that's not because they're running low on money. And most games are still one-time payment today. So you can count Ubisoft, EA etc. Of course there are other sources of payment for them than just the nominal price of the game, but most gamers only pay for the game and ignore everything else.

Besides, I don't think I want a market dominated by behemoths. If popularity of one-time payment model would lead to a market dominated by <25 person companies with an odd behemoth here and there, then I'm in.

Also, most software companies today are startups which exist only thanks to investor money. It's hard to say what a customer-driven market would look like. Although maybe recession is going to clear this up.

comment 4y ago · link · parent

Other companies which sell (only) software based on one-time payment model:

- ACD Systems (ACDSee)

- Serif (Affinity)

- Freron Software (MailMate)

- Sublime HQ (Sublime Text)

I use them all. Wouldn't pay for a subscription. I don't want a service. I want a product.

I also pay for services, but for other purposes: mail (Fastmail), online bookmarking (Pinboard), music streaming (Spotify, mostly for discovery; after I discover something I like, I usually go and buy it to have it myself), VPN, VPS. If there existed a decent video streaming service, I'd probably pay for that as well, but there isn't any.

comment 4y ago · link · parent

Also, when you change trams/buses along the way, any delay by a vehicle in the middle of the chain gets compounded instead of just being added to the time of your arrival, since it makes you miss subsequent vehicles. With a car, if you leave 5 minutes later than you should, you should arrive 5 minutes late, not 30. And public transport is so unreliable, the delays are pretty much guaranteed for every trip, so you need to add huge time buffers to all of them if you want to be on time.

comment 4y ago · link · parent

iOS 10 hasn't been receiving security updates for 2 years now. The last iPhones which only got updates up to 10 were iPhone 5 and 5C. They were released in 2012. iPhone 5S (released in 2013) got updates up to iOS 12, but about a year ago security updates also ceased. That's almost 9 years of support. I don't think it's unreasonable to drop support for it after such a long time. Actually, I switched just yesterday from 5S to 13 Mini, mainly because I couldn't install most apps anymore, and I think that's fair.

comment 4y ago · link · parent

If anyone else wants to know what a "perfect shuffle" is, apparently it's this: <https://en.wikipedia.org/wiki/Faro_shuffle>

comment 4y ago · link · parent

This article is really weird. This person developed insecurity about using jarred garlic, because they saw (or imagined) that someone in college looked at them wrong when they used it. Then they proceeded to look out for comments about jarred garlic on Twitter, because what people say on Twitter is important. And then they complain that the snobs don't think about disabled people when they behave snobby. What a surprise. When I say that running regularly is healthy for you, I also don't think about people who don't have legs, have deformed legs, or have other disabilities preventing them from running. What sort of a complaint is that?

Overall, it gives the impression that this person actively searched for something to feel insecure about and then wrote a looong article about it.

Also, it's weird to label mincing garlic yourself as snobby, when it's the cheap option done by almost everyone. Forget about finding jarred garlic in a pleb fridge. Hipsters with creative eating habits? Much more likely. And for people without applicable disabilities, jarred garlic doesn't save all that much time. Time spent mincing garlic barely registers compared to other activities in the kitchen. And jarred garlic is A LOT more expensive[1]. But if you have disabilities, it may be the rational choice, yup, no argument about that. And even when it's not the rational choice, who cares?

When I cook, I don't check on Twitter if my way of cooking is approved by snobs. Go on detox from Twitter. Your life will get much better than by fighting imagined ableism.

[1]: No surprise here really. Fresh food is almost always several times cheaper than processed food. After all, it's less work to make it.

comment 4y ago · link · parent

De Bruijn sequences can also be used to quickly find the index of 1 in a word, when your CPU doesn't provide a dedicated instruction like lzcnt[1] (or when you're in a language competition which doesn't allow writing inline assembly). The paper talks only about 32-bit words, but you may find a 64-bits long de Bruijn sequence (B(2, 6)) on the Chessprogramming Wiki[2], which allows you to trivially generalise the algorithm for 64-bit words.

[1]: <https://www.researchgate.net/publication/2809440_Using_de_Br...>

[2]: <https://www.chessprogramming.org/index.php?title=De_Bruijn_S...>

comment 4y ago · link · parent

Don't atomic operations trigger cache synchronisation in CPUs? Doesn't that affect performance negatively? That would mean even a non-contended mutex would affect performance negatively. I suspect it depends a lot on the specific workload (and maybe even what addresses data is stored at in memory), so I'd measure the specific case, but that's my a priori gut feeling.

comment 4y ago · link · parent

Yes. The reason why currently you need to wrap Mutexes in Arcs is not thread-safety per se. Without std::thread::scope the Rust compiler doesn't know if the spawned threads won't outlive the Mutex (which is borrowed by the closures). So it's more about memory-safety than thread-safety in this case. std::thread::scope guarantees that the threads will be joined in the std::thread::scope, thus providing enough information to the compiler (via lifetime annotations) for it to decide that they won't outlive the Mutex, so borrowing is safe in this case. That sorted, Mutex always had Sync and Send, so everything is in place to use it from multiple threads.

comment 4y ago · link · parent

Your comment was dead for some reason. I vouched for it, because I think it's interesting to discuss.

Although obviously no compiler of a Turing-complete language is going to eliminate all logic errors, the user of a language like Rust or Haskell may use the type system to prevent certain classes of logical errors (not just problems with the shape of data, or incorrect memory handling). The way you do it is with Abstract Data Types. One example of such a type in Rust is &str. If you don't use unsafe code, it should preserve the invariant that the slice holds valid UTF-8 data. Containing invalid UTF-8 data would be a logical error, not a memory error or data shape error. Similar things may be achieved in C++ and Java with the use of access-modifiers (public vs private class fields and methods). The idea is well-explained in the famous Parse, don't validate[1] article.

The flipside is that too much of it and code becomes so complicated, it's very hard to work with --- you're falling into a Turing tarpit[2]. It becomes easier to just write simple code without bugs, without using all that type system wizardry. But a judicious use of this pattern, where it's appropriate, may be very beneficial.

[1]: <https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...>

[2]: <https://en.wikipedia.org/wiki/Turing_tarpit>

comment 4y ago · link · parent

Once std::thread::scope[1] is stabilised, in a lot of cases you're not going to need to wrap your Mutexes in Arcs anymore:

  #![feature(scoped_threads)]
  use std::thread;
  use std::sync::Mutex;

  fn main() {
      let a = Mutex::new(0u32);

      thread::scope(|s| {
          s.spawn(|| {
              *a.lock().unwrap() += 1;
          });
          s.spawn(|| {
              *a.lock().unwrap() += 1;
          });
      });
      assert_eq!(*a.lock().unwrap(), 2);
  }
A nice glimpse of structured concurrency.

[1]: <https://doc.rust-lang.org/std/thread/fn.scope.html>

Edit: removed unnecessary "mut" from declaration of "a".

comment 4y ago · link · parent

> Do people agree that corporations should respect the customs and values of the local people when operating their business there?

They may do that, but then playing a champion of the opposing values when it's convenient (pride month in the western world) is hypocrisy and it should be pointed out. If they didn't have an LGBTQ-based PR campaign in the West, then this move wouldn't merit a mention. Alas, it does.

comment 4y ago · link · parent

Yeah, this is the reason why I stopped attending pride parades. When you're there, it looks like a big PR platform for a bunch of banks, Google, Apple and whatever. Those same companies don't advocate for the right of this community in places where it matters most, since it won't give them money, but it will mean risk. I think it would be fine, if they weren't part of the parades, but the hypocrisy is where it crosses the line for me. I'm also disappointed in pride parade leaders for allowing it, but I also doubt they're genuinely there for the cause, rather than the political platform it gives them to jumpstart their careers.

Same goes for Hollywood preaching. It would be a lot better, if they did nothing and never commented on politics, than the charade they're playing.

comment 4y ago · link · parent

I'm using at least two products made by solo entrepeneurs: MailMate and Pinboard. Both are awesome. If anything, it's been my impression that the bigger the corp, the worse software they make (in an asymptotic progression, so I'm not saying that 5 people will do worse than 1).
1
323334
55