HNHacker News
TopNewBestAskShowJobs

orisho

527 karma · joined April 24, 2019

orishoshan.com
submissionscomments
orisho··on Windyquery: A non-blocking Python PostgreSQL query builder
Geez, yes, absolutely. Python went from being my favorite language to being somewhere down there with Javascript, largely thanks to the ecosystem disaster async await brought on the language.
orisho··on Elevator Sabbath service mode (SHO)
Yes indeed, it is multifaceted and there are many reasons any one person is following the rules. But I was trying to give a plausible explanation for why one might do so, even if it doesn't make strict sense to them to use a Shabbat mode elevator (the user I was replying to asked how does this make any sense, if you're trying to avoid labor during Sabbath), further outlining the idea that there are incentives other than belief that God said so.

In the case of the Sabbath elevator, obviously it was not mentioned explicitly in the Bible, so it's what the Rabbi thinks. So why believe the Rabbi when the logic doesn't seem to be 100% there? I think the reason is there is massive social incentive to comply instead of asking questions about such widely accepted ideas.

It does seem you're speaking from more personal experience than mine, so I defer to you, but I'd like to reiterate that I'm just trying to provide a plausible explanation for why one who doesn't have such a strong belief might still end up doing it (the hypothetical person in the post of the poster I was replying to who's asking themselves why a Sabbath elevator makes sense), but I'm not trying to say that's all there is to it. People who don't question it in the first place because their thought process is that the Halacha is telling them what God meant and thus they are merely following God's instructions don't question whether a Shabbat elevator makes sense in the first place.

orisho··on Elevator Sabbath service mode (SHO)
I'm from Israel, and while I don't personally abide by any religious rules, I do come into contact with people who do and have an idea: it is important to understand that most people do not follow these rules as a functional method to achieve some goal. For example, it's not like they're actively thinking "oh if I press this button on Sabbath then I'll go to hell, and I wanna go to heaven so I won't".

Instead, they're following these rules as a social decree. In their circles, it is the obvious and accepted thing to do to follow these rules, which the community's leading Rabbi sets (or well, gives guidelines which are socially considered binding). If you don't follow the rules, then you're a weird one, and religious communities tend not to be accepting of the different, so they will shun you for turning on the light on Sabbath (if you keep doing it..)

So for one born into a religious community, you're taught to do so and there is a strong social incentive to do so: if you don't, you're first branded an odd one, and in some cases shunned, depending on how severe your straying off the path is. If you were told that were you to use the elevator normally, your parents would be very upset with you and may stop talking to you altogether, you'd think about it twice, even if you don't personally feel that you want to follow Judaism.

Finally, the religious authorities have a power incentive to do this: by setting rules and maintaining their position as the authorities who set rules, they keep a lot of power over a large number of people. Often this even manifests financially, as a respected religious authority can give Kosher certificates (and many products which are not food, like phones, can also be Kosher) - of course, the certification costs money, just like a SOC2 audit. Same goes for Sabbath certified electric devices - someone gave their stamp of approval, and the developer paid for it.

So to summarize - religious authorities enjoy power and money by being those who set the rules, everyday people have a strong social incentive to follow the rules as breaking them is taboo.

I think about it like following requirements set by certain certifications. Not all requirements make sense in every context - sometimes you may feel silly complying, knowing you're doing it just to check a box, even though there's no practical value to it.

But there is a value to passing the audit and getting the certificate saying you comply from EY or whoever, so you abide by the requirements, even when they don't make sense, so you can show your ~Kosher~ ISO certificate when you need to.

I'd like to point out that this isn't all there is to it - there are very obviously other incentives to do things this way (e.g. personal belief), but I'm just trying to make an analogy with terms from the HNer's day to day to show why you might follow religious rules even if you're (say) a teenager who doesn't care one bit.

orisho··on Research: Adding Women to the C-Suite Changes How Companies Think
The way I see it, (1) is viewed through the lens of men and women as sexes. It aims to say that there's no meaningful difference if only the sex is different - a hypothetical man, every other trait remaining unchanged, who would have his sex changed to female, would not result in a meaningful difference in those characteristics. Therefore, sexism is unjustified.

However, (2) seems to say that women, bring to the table a different set of experiences and knowledge than men. Their knowledge is significant since it represents, on some level, approximately half of society. Finally, because women are underrepresented in C level management, this set of experiences means that women have advice and knowledge that can meaningfully influence corporate decisions - that knowledge would be more difficult to come by for men.

So they only appear contradictory when parsed at face value, but actually - at least to me - they seem to be referring to completely different subjects.

orisho··on Go is a great programming language
This isn't Reddit. Please don't make posts that are purely flames without substance.
orisho··on Go Statement Considered Harmful (2018)
There's one key difference between Go and all the other examples: an uncaught panic in any goroutine, not just the main goroutine, crashes the app.

Often your main goroutine will just be starting other goroutines, in a multiple-services-one-process architecture, and it doesn't care whether they succeed or not, and its code need not be aware of whether they're critical. If they are, they should panic and crash the program. Just like a main function that crashes.

Doing things with the nursery is restrictive which has its benefits, but I don't agree that it's just strictly always the preferred approach. I prefer an approach like Go's, where you can choose whether to use nurseries (errgroups), and the implementation for them is provided by the language authors. Sure, you are able to start and manage goroutines in this way, even if you don't care about their lifetime - as they are effectively individual programs, but you shouldn't HAVE to.

So when you care about goroutines running only while their starter goroutine is at a certain scope, you can do so. But you don't have to, and when you don't need it - you don't need to pay the price. Go appears to take an approach that provides primitives that are as least restrictive as possible to make it easy to read code, but then also has a batteries included approach with its libraries.

orisho··on Goroutines are not significantly lighter than threads
Does it? You could implement a classic select-based reader and writer in a single goroutine, to handle many sockets at once.
orisho··on Heat pumps are one of the easiest ways for homeowners to fight climate change
I'm confused, isn't this just a high power AC unit, common in many other countries? In many countries they are used for both cooling in summer and heating in winter. Am I missing something?
orisho··on Implementing "defer"
defer also is used to recover from panics, which makes much more sense in a function end context.

For example, when writing code that performs an operation with the potential to panic, but that you want to convert to an error, something you can do is name the error return value and then modify it in the defer, after recovering from a panic, according to the cause of the panic. It's not obvious that that pattern would work well if defer could also execute on scope end - what does recover do then? Will it affect the following recovers? Also, if the function continues executing but you modified some variables, it makes it complicated to reason about what could be in those variables.

Defer running at function end is much more easier to reason about: functions execute their standard control flow until a return or panic is hit, and then defers are executed, without returning to standard control flow.

orisho··on I helped build ByteDance's censorship machine
But why did they miss it? I believe they did so because this kind of speech is not unusual. So even though it was out in the open, likely reported many times as people do on social platforms - it was missed because it was regarded as people saying extreme thngs but not going to act on them. In other words, there's a lot of this kind of speech in modern times, but it doesn't get censored and so actually dangerous speech gets missed.

And then they actually went through with it - so many private organizations took action. And yet, the government did not force their hand.

orisho··on Employee #1: Reddit (2016)
In many countries that aren't the US, IT is used to refer to engineering too. For example, software engineers working in a Brazil bank are considered part of IT.

This probably shows a lack of understanding of cultural differences by the person surprised by the use of the term rather than the speaker.

orisho··on Launch HN: Zaraz (YC W20) – Use third-party tools without slowing your website
That's funny as the meaning in Hebrew (this is an Israeli company) is similar - Zaraz means Catalyst.
orisho··on "ERROR: could not open temporary file" after upgrade to Mac OS Big Sur
The problem is usually that AVs hook file operations to scan files. Unfortunately, software development performs a LOT of file IO by package management and compilers, and in the case of compilers those files are internally formatted as files containing code (eg obj files, libs or executables), even if they are only temporary during the build.

Because of this, an AV product could work fine for every department of the company, but have an extreme negative performance impact on software devs. To give you an idea, it could mean the difference between a 5 minute and a 1 hour build. These issues are inherent to a generic AV product so often the fix is simply to add those folders to an exclusion list.

Does it provide security for those folders? Nope. But the alternative could make it impossible to get work done.

orisho··on What You Should Know Before Leaking a Zoom Meeting
They probably do run an encoder on the server. When in a many-users meeting, everyone but the one speaking have reduced resolution and bitrate. This suggests they are encoding a low bitrate and high bitrate stream for each user, and switching as needed.
orisho··on REST Servers in Go: Part 1 – standard library
I'm with you on this. Dependency injection seems to me to replicate some of the features of interfaces while introducing complexity because the injection is indirect -- instead of having code that initializes a different object, it all happens dynamically during runtime using reflection. An antipattern as far as I'm concerned. It seems to achieve little or no gain at a very high cost.
orisho··on Why Zig when there is already C++, D, and Rust?
Is it possible to mix Evented and Blocking modes in a single Zig app? At work we write libraries that mix them. For example you might want to do CPU bound work in threads, while you'd want a single thread to manage IO (this thread would run in Evented mode).

At a glance, this seems not possible in Zig because it's a compiletime flag?

orisho··on Ubiquiti Networks Breach
If you just want dumb WiFi, you can provision and remove the controller. Nowadays you can even do this with the UniFi phone app (standalone mode let's you configure and update firmware).

I've had a UAP AC LR at home for a few years and we've got about 6 UAP AC HD at work. We used the phone app to provision and after that you can pretty much forget about it. Great for small startups that want great coverage and dont have someone who's supposed to mess around with it.

orisho··on Ask HN: What does mastery look like in software engineering?
That's only if the challenge is completely new. Sure, if you're researching something novel in an area you've not worked on, the information you have is likely very far from complete. But if you're writing a backend server for a new POC for the umpteenth time in your career, you're likely to be able to do it fast, well, and be able to estimate how long it's gonna take. The reason being that the unknowns are slim to none.
orisho··on Ask HN: Is anyone working on anti-drone tech?
An ex-teammate is the CEO of http://apolloshield.com

Browsing their site may also introduce you to some keywords you can use to search for more.

orisho··on Unlimited is like a Ponzi Scheme
It appears MediaFire is no longer unlimited
orisho··on Feedback wanted: CORS for private networks (RFC1918)
The certificate transparency log for an internal network would let you see which domains are in use and make it far easier for an attacker to exploit internal services. The attacker need not be an APT for this, it could be as mundane as a XSS attack.
orisho··on Companies can track your phone’s movements to target ads
Presumably through WiFi beacons. Apple and Google can give you approximate location using a list of nearby WiFi beacons
orisho··on When you browse Instagram and find Tony Abbott's passport number
This post was very amusing! It always bordered on silly meme-style writing, but never doing too much of it at once which I find annoying. The story itself was also very interesting!
orisho··on 84-Year-Old Gamer Has More Than 900k ‘Grandkids’
I'm thoroughly disappointed.
orisho··on Don't trust default timeouts
Most software expect an error of some sort (e.g. file not found, permissions) and do nothing with it except print it. This would be sane behavior with a NFS timeout. Let the user retry rather than hanging forever.

Consider a startup script that hangs forever. Better it fail than hang. Or ls hanging forever when instead the filesystem could fail the operation after 30s.

orisho··on Don't trust default timeouts
In Go, it is a single code path. Contexts can be canceled and they also come with propagating timeouts. The timeouts simply trigger a cancellation, so the only code path is handling cancellation.

There's nothing complicated about it, so there's no reason your code can't implement timeouts and cancellation the same way: timeouts are a cancellation triggered autonomously after some time passes.

orisho··on Why Johnny Won't Upgrade
You can give it a shot and then do a factory reset if anything stops working.
orisho··on Nine-year-old bug in the Go standard library enables DoS
An assertion, I think, would crash the program. In that sense implementing them is simple - just panic when the condition is violated. Go prefers plain checks that return errors, though. Panics should be used for truly unexpected conditions, such as a nil pointer. Invalid input, as in this case, would be better served as an error.
orisho··on 20GB leak of Intel data: whole Git repositories, dev tools, backdoor mentions
Sure, it's simple. But you would have to be able to modify the container settings anyway. For all practical uses, and certainly in my case, you could just make it run a different image at that point. Or copy another executable into the container and run it. You're already privileged. Requiring you to be privileged to access the debug server means it's secure.
orisho··on 20GB leak of Intel data: whole Git repositories, dev tools, backdoor mentions
If you're already running another process in the container, you could do whatever you want anyway.
← PreviousPage 2 of 4Next →