HNHacker News
TopNewBestAskShowJobs

orisho

527 karma · joined April 24, 2019

orishoshan.com
submissionscomments
orisho··on Session: An open-source private messenger that doesn’t need your phone number
It could store usernames locally on the phone and use the same method to psedonymize them. It seems to me that Signal devs just have a strong preference for the convenience of using phone numbers.

That's okay, but does not make the change hard to make.

orisho··on We have to talk about this Python, Gunicorn, Gevent thing
AFAIK there is only ever just one thread (that runs user code). setTimeout, etc are all also invoked by the event loop.

I can vaguely recall (but it's 1AM so I didn't verify - take with a grain of salt) that nodejs uses an a thread pool for IO, but I guess that's only for IO for which there is no async API, otherwise that would be wasteful.

I imagine a quick search about the event loop and said thread pool would yield better researched answers :)

orisho··on We have to talk about this Python, Gunicorn, Gevent thing
I don't know, but I was actually discussing time when the thread is performing pure CPU operations and not doing any IO. In this case the JS code does not yield to the event loop, so any other requests waiting will stall.

This is actually an important property of JavaScript that allows it to work without locks (as long as you do not await, your code runs completely synchronously and will not be interrupted). It's not a flaw, but definitely requires awareness.

Gevent code that doesn't spawn more than one native thread (the one that runs the event loop) also has this property - you don't need locks as long as you do not perform IO. In Python's case it can be more tricky, as you might end up yielding to the event loop by indirectly performing IO when logging or something similar.

In JavaScript, the only case, AFAIK, where this can happen is when you await. Nothing else will cause you to yield to the event loop.

orisho··on We have to talk about this Python, Gunicorn, Gevent thing
The problem that's described here - "green" threads being CPU bound for too long and causing other requests to time out is one that is common to anything that uses an event loop and is not unique to gevent. node.js also suffers from this.

Rachel says that a thread is only ever doing one thing at a time - it is handling one request, not many. But that's only true when you do CPU bound work. There is no way to write code using blocking IO-style code without using some form of event loop (gevent, async/await). You cannot spin up 100K native threads to handle 100K requests that are IO bound (which is very common in a microservice architecture, since requests will very quickly block on requests to other services). Or well, you can, but the native thread context switch overhead is very quickly going to grind the machine to a halt as you grow.

I'm a big fan of gevent, and while it does have these shortcomings - they are there because it's all on top of Python, a language which started out with the classic async model (native threads), rather than this model.

Golang, on the other hand, doesn't suffer from them as it was designed from the get-go with this threading model in mind. So it allows you to write blocking style code and get the benefits of an event loop (you never have to think about whether you need to await this operation). And on the other hand, goroutines can be preempted if they spend too long doing CPU work, just like normal threads.

orisho··on Session: An open-source private messenger that doesn’t need your phone number
I don't get how it's a hard problem. For many years we got by without using phone numbers as identifiers to communicate online. Why not usernames? Or any other one of the myriad of phone number alternatives
orisho··on “We already store data. In a database. It works well”
I think it does have intrinsic value - that value lies in allowing some people, in some areas, to circumvent tracking or avoid authorities. To those people, BTC brings value which cannot be had elsewhere. My personal belief is that this is what fuels BTC's value, and the rest is speculation (but then it's similar to stocks).

I don't think that whether it has this property (and value) is in question - the question is how much of BTC's price is fueled by that value.

orisho··on ThinkPad T480 is my new main laptop which runs FreeBSD
I use a Thinkpad T490s and it works great with Ubuntu out of the box. Only thing that doesn't work is clicking the touchpad for right click, but since the Thinkpad comes with physical left and right buttons that was a non-issue.
orisho··on Is it ok to be a jerk to jerks at office?
Wouldn't that make you a jerk too?

I definitely wouldn't do anything "to teach somebody a lesson", that seems culturally unhealthy. Talk to them about the issue.

orisho··on Captcha.nsa.gov
I'm guessing that the NSA website uses recaptcha, which is served by Google. Perhaps in order to comply with strict origin policy, they want everything on nsa.gov to be served from their domain. They seem to have a reverse proxy that proxies requests to google.com.

That's one plausible explanation, but in any case, even if my explanation is wrong, I doubt the explanation is interesting.

orisho··on Boeing Weighs Cutting or Halting 737 Max Production
I also believe most people hadn't heard of it. For one, news gets around much faster and easier nowadays with the advent of the internet. Anecdotally, it appears as if anyone who flies would've had the right exposure to Western media to hear about it.
orisho··on Debuggers Suck
Disclaimer: I'm a senior dev at rookout.com, which does something similar to Pernosco/rr but tailored to languages used for backend/web like Node.js, Java and Python instead of statically compiled (to machine language) languages like C/C++.

I definitely agree - I've watched people painstakingly stare at code, add print/log statements and waste enormous amounts of time -- and then I asked them why they don't just use a debugger and always got unsatisfactory answers that seem to hide the fact they have a hard time using the tool effectively.

Of course, like you say, using a debugger effectively in many settings is difficult. A multi-threaded program setting a breakpoint and inspecting state difficult, as finding the right thread to inspect can be difficult -- not to mention having other threads alter your debugger's display state by breaking once you're already inspecting the correct thread. I've had this happen with native software (e.g. C++), for which rr is great (but unfortunately I've worked mostly on Windows), but also for backend software written in higher level languages such as Python.

Using a classic debugger effectively in a multithreaded environment requires being aware of the issues you're about to encounter, and knowing how to deal with them with the debugger's tooling -- which ranges between difficult and not possible. For example, with Windbg - it is possible to break on the correct thread, but setting a conditional breakpoint (even a simple one) is nothing less than an incantation to someone who's never used it before. As such, the cost of entry is very high, and I've watched kernel driver developers use prints and asserts to debug.

While at my previous job, I thought that logs are a really crappy way of debugging an issue in production when it arises - if you have all the right information and can fetch it quickly, great. But often, that's not the case - you might end up needing to add logs, or worse - the issue will be in a hotspot where you simply can't log - since you'll have _too much_ data, or you can't log everything for compliance reasons.

I had a similar idea to Rookout's (and even almost accidentally raised money just by talking to the right people, although I was not prepared at the time to start a company), and discovered Rookout later on, going on to use them.

When I left my last job, I joined Rookout because -- like O'Callahan (and Pernosco) -- I'm very much a strong believer that the way debugging is today isn't good enough, and can be a lot better.

Nowadays Rookout's product for interactive debugging backend apps is pretty much complete, works well and fast -- and we're exploring other ways to make debugging easier.

Rookout's a bit different to rr/Pernosco in that it allows you to collect variables from anywhere during runtime (instead of allowing you to replay a recording) -- it's a bit similar to allowing you to add a log that logs locals() anywhere, except without changing your code, redeploying, etc.

orisho··on Show HN: Trip Planner – A tool for planning a trip itinerary using Google Maps
I didn't say it's too bloated, but whipping up a script like this would take me time in the scale of minutes, while adding a basic UI would make that hours, and not be too useful. To be even a little useful the UI has to do quite a lot.
orisho··on Show HN: Trip Planner – A tool for planning a trip itinerary using Google Maps
Probably because the author wrote this for themselves and did not need a UI, but then thought that sharing it would be cool.
orisho··on Asking my co-workers out to lunch
Not really. If you're particularly panicky and feel like you won't know where to draw the line (I feel like if you're asking someone for lunch because you don't really know them, the line is really obvious), then just avoid complimenting looks or clothing and touching. Really no way to go wrong if you avoid those.

Also, if the person does not respond positively (and I don't mean they respond negatively, but if they say no for whatever reason), don't ask again. They now know you want to and will let you know when they're free, and once they do, even if you're the one whose busy, you'll know you're not bothering them.

At least in Israel, lunch is regarded as inherently acceptable in a professional setting, since it's in the middle of the workday, even if you're eating out. Generally I'll only ask people to meet on their personal time if I feel like we know each other well enough and they like me back, otherwise it's an inconvenience -- asking for somebody's personal time is a big ask. With the opposite sex, I find it's really hard for a simple invite for dinner or beer to be misconstrued as an advance. It also helps that the vast majority of female engineers I know are in a relationship, so that makes my intent blatantly obvious.

orisho··on Asking my co-workers out to lunch
This is common in Israel where all but the largest companies (FAANG) give you lunch money instead of free food, so it's a matter of choosing between eating out or ordering in - the cost is the same.

Facebook also lets engineers (and only engineers, oddly) eat out on Wednesdays.

orisho··on [dead]
Male brain of nematode worms. >Although the neurons have only been found in the brains of nematode worms, scientists at University College London say that it is likely that similar mechanisms are at work in humans
orisho··on Blizzard bans player from Hearthstone following on-stream Hong Kong protest
Not picking a side is not allowing political discussion, no matter who you (or they) perceive to be right. Coincidentally, this is also the choice that makes most sense to a corporation which stands to lose a lot from picking a side. Players will likely respond to sensationalist reporting of this case, but forget about it soon after, while the Chinese government is not gonna go easy on Blizzard picking the other side.
orisho··on Blizzard bans player from Hearthstone following on-stream Hong Kong protest
Title is clickbaity. They did it for a political protest during an official Blizzard tournament stream, not for actions on his own stream or something.

He put on a gas mask and called for liberation of HK. I'm with him, but I definitely see why Blizzard has the rule in place, and it would not be right to overlook this - they would then have to be OK with others doing other protests. Blizzard should not pick a side.

orisho··on The Internet Relies on People Working for Free
Is that really so widespread though? All of my open source contributions were done on the job, fixing a bug or adding a feature to an open source project I use at work. There is a strong incentive to improve the project rather than fork it to fix, as you don't have to keep maintaining it yourself. It also appears that many maintainers are doing so as part of their duties at work.

Just as Google maintains their search engine for "free" to show you ads, they maintain Kubernetes so that you use it on their cloud platform. You fix bugs in Kubernetes so you can have the fix you need, at work, when you need it.

orisho··on Show HN: Lunch Money, a personal budgeting tool with multi-currency support
Is there a way to get an email when you have CSV import? Since Plaid does not support my bank, and there's no CSV import, this pretty much is unusable for me, but sounds good!
orisho··on Minify Your SVGs
Why? Why minify everything? It all gets gzipped at the HTTP layer anyway! I truly cannot understand this need to minify everything (JS included)
orisho··on Are We Living in a Computer Simulation? Let’s Not Find Out
Well why wouldn't they be consistent? Just as you would add another column to an existing database table and run a data migration so that the new column makes sense in the context of the old and no one is the wiser, so can our simulators adjust the simulation as well as our understanding of the laws of physics in a manner that we could not discern. That is, if they are indeed able to pause and change anything.
orisho··on Launch HN: FeaturePeek (YC S19) – Front-end review for the whole team
With a couple of educated guesses about how FP works coupled with the FAQ content I'm able to imagine what it looks like, but I think a link to an example project (or even inline if the length makes sense) would go a long way. The key here IMO is something which allows you to passively learn what you'll be required to do to get this to work. My experience is that requiring users to perform an action such as signing up to learn this information will discourage users.
orisho··on Launch HN: FeaturePeek (YC S19) – Front-end review for the whole team
Something which I immediately wondered about is how does this work with backend services when they are required to display part of the app. The FAQ mentions something about environment variables, but is not clear. I would suggest adding a section on that which is accessible outside your app to reduce cognitive load and encourage adoption.
orisho··on Docker Hub Hacked – 190k accounts, GitHub tokens revoked, builds disabled
Yes. The previous comments were about checksums, which SHA256 is not.
orisho··on Docker Hub Hacked – 190k accounts, GitHub tokens revoked, builds disabled
I think his point is that for some checksums it could be trivial (and for some, tools already exist). Checksums aren't designed for this, while on the other hand secure hashing is. As a result, authors of hashing algorithms often attempt to mathematically prove their strength and resistance to a collision.
← PreviousPage 4 of 4