HNHacker News
TopNewBestAskShowJobs

jreese

4,836 karma · joined July 9, 2008

http://n7.gg amy @ n7.gg @n7cmdr

[ my public key: https://keybase.io/jreese; my proof: https://keybase.io/jreese/sigs/oMm1rGpBWQUZlYjQeGCSD25PvSnx2g6ZuaQ89HzjO2Q ]

submissionscomments
jreese··on PDM: A Modern Python Package Manager
As a Python infra person, I would refine that to:

If you're building an application, use Poetry. If you're building a library, use Flit. Use PEP621 metadata in pyproject.toml regardless.

Poetry is much more focused on managing dependencies for applications than dealing with libraries that have to be used by other libraries or applications. See this deep discussion for some timely/relevant examples: https://iscinumpy.dev/post/bound-version-constraints/

jreese··on Latest Earthquakes
How would you distinguish between seismic events and someone walking by, running up and down stairs, or just bumping the table the phone is sitting on? seismometers are strategically located in places where humans won't accidentally affect their readings via normal daily activities.
jreese··on PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)
> when you are hiring for a python position

If you instead hire for "engineering" positions, without caring about what languages the candidate knows, you can interview for their ability to solve practical programming exercises [1] in whatever language they are most familiar/comfortable with. Maybe this only works at FAANG-level hiring, but in these contexts, top tier candidates can get things done in any language, and that's really what matters, no? But more to your point, I've generally found candidates that pick Python (or Ruby/Perl/etc) can actually accomplish more–and therefore prove their capabilities–in the space of an interview simply because they're picking a more expressive language. Bad candidates will prove they are bad candidates no matter what language they choose.

1: Eg, reading/manipulating files, merging/filtering/sorting data, generating and processing multi-dimensional data structures, etc.

jreese··on PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)
Isn't that true for any language? Why are you hiring for language skills rather than problem solving aptitude and conceptual fundamentals?
jreese··on Ask HN: Best cars without too much digitalization?
Biggest concern is that many cars of this era spectacularly fail on the front overlap and small front overlap tests, resulting in trapping, pinning, or worse. Older cars don't do any better, mind you, but the switch to unibody construction without the structural rigidity of the latest models can result in you becoming part of the crumple zones.
jreese··on Pyjion – A Python JIT Compiler
It's not an alternate runtime, so the GIL is still there and Numpy performance should be unchanged, though any pure-Python modules from Numpy could potentially benefit from the JIT speedup.
jreese··on Pyjion – A Python JIT Compiler
> Pyjion does not currently support with blocks.

> Pyjion does not currently support async..await (YIELD_FROM) statements.

Those are some major limitations for modern Python code.

https://pyjion.readthedocs.io/en/latest/limitations.html

jreese··on How learned helplessness happens in engineering teams
The drain I am talking about is a complete lack of due diligence on behalf of those asking for my help (and my limited time/attention).

When the error message contains a clear message and a URL with step-by-step instructions, and the person in question just pastes the full error message including the URL, and asks "what do I do?"

When a problem can be solved by responding with "please follow the instructions in the error message you sent me".

When someone makes an internal group post asking "how do I do X?" and the pinned post that was right below the submit button contains a summary and link to detailed step-by-step instructions titled "how to X".

jreese··on How learned helplessness happens in engineering teams
When I started at BigCo, the recommended policy was to spend two hours trying to solve it yourself, including searching the wiki, debugging code, etc. If you hadn't made any progress in that time period, then ask someone from your own team or make a post in a related internal support group. Only after exhausting that route, and getting no help, should you escalate to the team/oncall that owns the tool/service you are having problems with. It seems that culture has been lost.
jreese··on How learned helplessness happens in engineering teams
As a member of a core infra/"foundation" team, the biggest drain on my soul is the number of other engineers that are helpless, or never learned how to find solutions on their own. They never search wikis, look for similar posts on internal groups, or even read the error message from the tool that tells them exactly how to fix the problem they're asking about. When the culture has become "google everything", but you can't google for internal tools/tech problems, suddenly folks have no idea how to read error messages, debug a stack trace, or solve any problem without hand-holding from a senior engineer. I've been at BigCo for nine years now, and it has only gotten worse as the size of the company has grown exponentially.
jreese··on I don’t know how to count that low
About ten years ago, I applied for a SWE role at Facebook. During the interview, the only question that I didn't feel confident was when they asked me how group-by works in SQL and to write a group by query. I said I didn't know and usually looked it up, but they didn't want me to look it up. They rejected me, and the recruiter literally told me it was due to a lack of familiarity with SQL (something I'd been using with PHP for 6+ years at that point).

Edit: I interviewed a year later, wasn't asked about SQL at all, absolutely fumbled my way through some networking questions, and was still hired, so it's clearly very dependent on who's interviewing you and what they ask.

jreese··on Oculess – Removes account requirements and telemetry from Oculus Quest devices
Zuck doesn't think about this at all.
jreese··on Facebook banned me for life because I help people use it less
I mean, you're seeing their article on Slate. It's not like they've been banned from the entire internet or all news media.
jreese··on Facebook paid billions to spare Zuckerberg in data suit, shareholders allege
Legitimate question: what crime would they have accused him of? Or would they just be civil offenses that aren't actually crimes? That is a meaningful distinction, but I haven't managed to read anything talking about what the actual charges would have been.

Stealing's a crime; breaking contracts between FB and the FTC is not.

jreese··on FB messenger silently censoring links, claims they were sent
E2E is not enabled by default, because that generally provides a worse experience (eg, no desktop/web access) for users who don't care about it. You can enable E2E encryption on any conversation by tapping on the conversation title, and enabling "secret mode".
jreese··on Amazon Unlawfully Confiscated Union Literature, NLRB Finds
I hardly think "owning stock" is the goal, rather than "receiving compensation". Vesting schedules that backload compensation to discourage quitting early are hostile to employees, and makes them feel unfairly "locked in" because they lose a disproportionate amount of their unvested compensation relative to the percentage of the vesting period that they have spent working.

By comparison, Facebook vesting is evenly spread across four years, with refreshers granted every year, so that people can expect to receive relatively stable compensation for as long as they stay at the company. There's no "bad" time to leave when it comes to your vesting schedule, so you don't feel "locked in" for anything beyond the total value that you'll always be leaving on the table, regardless of when you leave. Refreshers don't even have a vesting cliff anymore, so you don't even feel the need to stick around for a particularly good batch if you don't want to.

jreese··on Show HN: Python Source Code Refactoring Toolkit via AST
It was considered, but the initial goals of Bowler was to a) build on top of lib2to3 in an attempt to get broader upstream support for maintaining it as an "official" cst module, which fizzled out, and b) to use some of the more complex matching semantics that lib2to3 enabled, which baron and other cst alternatives don't really attempt to cover.

Things like "find any function that uses kwargs" or "find any class that defines a method named `bar`" can be easily expressed with lib2to3's matching grammar, and no other CST that I'm aware of (that isn't itself based on lib2to3) has equivalent functionality. This is something we wanted to add to LibCST, but haven't had the time to focus on given other priorities. Meanwhile, we used LibCST to write a safer alternative to isort: https://usort.readthedocs.io

jreese··on Show HN: Python Source Code Refactoring Toolkit via AST
(Author of Bowler/maintainer of fissix)

The main concern with using the ast module from stdlib is that you lose all formatting/whitespace/comments in your syntax tree, so writing any changes back to the original sources requires doing a lot more extra work to preserve the original formatting, put back comments, etc. This is entire point of lib2to3/fissix and LibCST, allowing large scale CST manipulation while preserving all of those comments and formatting. We do recognize the limitations of lib2to3/fissix, though, so there have been some backburner plans to move Bowler onto LibCST, as well as building a PEG-based parser for LibCST specifically to enable support for 3.10 and future syntax/grammar changes. But of course, this is very difficult to give any ETA or target for release.

jreese··on Valve Steam Deck
PCIE lanes are still a function of both the CPU and the motherboard chipset. It's cheaper to build a board with fewer PCIE lanes, and cheaper to have fewer components that need said PCIE lanes.
jreese··on Senate Unanimously Approves a Bill to Make Juneteenth a Public Holiday
Last Week Tonight on Prison Labor: https://www.youtube.com/watch?v=AjqaNQ018zU
jreese··on Facebook extends its work-at-home policy to most employees
AFAIK, Google has a very similar policy. At FB, E5 is a "terminal level", so once you hit that level, there's no push or expectation to reach beyond that. I've been in the E4 red zone at one point, and spent about a year getting evaluated at E5 levels before getting the promo. You're not automatically out if you don't reach it in time, but you have to be showing progress, and it does get more urgent the longer you spend in that zone.
jreese··on Facebook extends its work-at-home policy to most employees
Note that that's starting in October at the earliest, depending on how/when your local office reopens up. The Menlo Park campus is only "10% open" right now, so the only people in the office are the ones desperate to get out of the house, and we're not expecting the office to be 50% open until September. There is plenty of notice and time for people who really care about working from home to either apply for remote work or slowly adjust back to office work.
jreese··on How Universal Control on macOS Monterey Works
That doesn't support the iPad though, right?
jreese··on Employees are quitting instead of giving up working from home
I can't speak for the GP commenter, but from my own experience being non-binary, I have to expend cognitive energy every morning thinking about what I'll be doing that day (what meetings, any errands, etc), before deciding what clothes I can wear. If I'm staying home all day, with no meetings, or only meeting with trusted colleagues, I will dress differently than a day where I need to go to a store, or if I need to meet with coworkers I've never met before.

For trans people, just existing without conflict or judgement from others is a constant struggle between society's normative expectations and the desire to express who you really are.

jreese··on Instagram lets users hide likes to reduce social media pressure
FWIW, most of what happens with the unique subdomains is done with the intention of automatically routing you to the nearest edge/pop that has the best chance of either having the asset cached, or in the best location for routing your request to a datacenter that can serve the asset from disk. By generating the seemingly random subdomains when serving the metadata to the client, it can most efficiently fetch the media to be displayed. It's entirely possible (likely?) that multiple users in the same ISP/location to be vended the same subdomain/url, but physically/topologically distant users will get different urls.
jreese··on Stanford Bunny
The page you link to even talks about it being a model rather than a scan:

> It is a mathematical model of an ordinary Melitta-brand teapot

> The teapot model was created in 1975 by early computer graphics researcher Martin Newell, a member of the pioneering graphics program at the University of Utah.[3] It was one of the first to be modeled (using bézier curves) rather than precisely measured.

jreese··on Tosh: Changing your SSH server's listen address every 30 seconds based on TOTP
Hardware clocks are famously unreliable and inaccurate. NTP has failure modes that can result in servers being wildly out of sync with reality. Letting either one of those hose your ability to log in and diagnose/recover the system is a mistake.
jreese··on Tosh: Changing your SSH server's listen address every 30 seconds based on TOTP
It's one thing to lock yourself out of your application or admin interface when NTP breaks. It's another thing entirely to lock yourself out of recovering the server entirely when clock skew inevitably hits you.

If you really want 2FA for SSH, use something like Yubikeys that increment a counter and generate tokens based on that counter. And use it during the actual authentication session, not for figuring out which magic port the server will be listening on. You never have to worry about synchronized clocks, just a database tracking the highest counter value ever seen, so that previous values can't be reused.

jreese··on Tosh: Changing your SSH server's listen address every 30 seconds based on TOTP
And all you have to do is trust that your client and server will always have synchronized clocks...
jreese··on Welcome to Libera Chat
CC no-commercial does not mean the owner of the content can't commercialize it. The owner is explicitly granted all rights by law, regardless of how they license it to others. In this case, the license is to the content of the site, so someone else can reuse that content elsewhere, but not in a commercial context.
← PreviousPage 3 of 4Next →