HNHacker News
TopNewBestAskShowJobs

juliusgeo

319 karma · joined October 1, 2018

github.com/juliusgeo
submissionscomments
juliusgeo··on Show HN: I built a CSV parser to try Go 1.26's new SIMD package
This is super cool! If I'm understanding your implementation correctly, you do perform bit by bit state machine logic to check whether quotes should be escaped etc. You can do that in a single pass by using carry-less polynomial multiplication instructions (_mm_clmulepi64_si128 on AVX-512 I believe), or by just computing the carryless xor directly on the quote mask and then &ing the inverse with the bitmask for quotes. Simdjson uses this trick, and I use it as well in my Rust simd csv parser:

https://github.com/juliusgeo/csimdv-rs/blob/681df3b036f30c5a...

This is a good write-up on how the approach works: https://nullprogram.com/blog/2021/12/04/

juliusgeo··on Ask HN: I'm an MIT senior and still unemployed – and so are most of my friends
As Percy Shelley said about Ozymandias, "Look on my Works, ye Mighty, and despair!" We're all sand on a long enough time scale, and getting a TC 800k+ will not save you from that fate, in the same way that conquering an empire will not save you either. Other people have pointed out that you likely make a decent wage, but understandably that does not address your concern. If you feel that your only value is your accomplishments, then no matter how much you achieve it will never be enough. You get to decide your own goals, and whether you're reaching them. Don't let these proxies for ability and class decide what you want or how fast you should get it.
juliusgeo··on Smuggling Python Code Using Shrugging Faces
> I don't like shrug! I don't want any shrug!

¯\_(ツ)_/¯

> If people don't equally well suspect `eval` then education attempts have seriously failed.

Haha yes, that statement was mostly made in jest. I would hope most people would be just as suspicious of an eval one liner with a singular emoji. Does make it slightly less suspicious than an equivalent eval which doesn't have 50 invisible bytes.

Good shout on fixing issues with eval in OSS--I think I might do that!

juliusgeo··on I Fired My Product Team and Replaced Them with AI
Funnily enough, in the bash script itself .DS_STORE is the second in a massive list of hardcoded exclusions.
juliusgeo··on TikTok goes dark in the US
I'm curious about your third assertion--I am definitely not a fan of the US government's current laissez-faire approach to regulation, but I was able to find a few examples of the US levying larger fines:

British Petroleum (total settlement was 20b, but the Clean Water Act penalty was only 5.5b): https://www.justice.gov/opa/pr/us-and-five-gulf-states-reach...

Wells Fargo: has had so many scandals, some of which were over 3b: https://www.justice.gov/opa/pr/wells-fargo-agrees-pay-3-bill...

In the article you linked, it mentions that this fine was 2.75b, or, 4% of Alibaba's 2019 revenue. I'm not knowledgeable enough in finance to state this as fact, but it looks like BP had a total revenue of 222B in 2015 [1]. 5.5b/222b = 2.47%. The total settlement would be 20b/222b = 9.01%

Now, obviously there are many examples of companies being fined paltry amounts for massive violations in the US, and I'm not sure how to reconcile 5.5b for destroying an entire ocean ecosystem vs roughly the same fine for anti-trust violations. But I don't think it's true that the US never enforces its laws against large and valuable companies. Do you know of any good sources that compare the history of corporate fines in China vs the US in more detail?

[1] https://www.bp.com/content/dam/bp/business-sites/en/global/c...

juliusgeo··on Ask HN: How do you prevent the impact of social media on your children?
I can understand your POV perhaps surprisingly well, as my father was secular growing up and then chose to join Protestantism in college (against his parents wishes). I wonder if at the end of the day it's just teenagers wanting to rebel. My dad's parents were secular, so he became Christian, and I became secular again. I can definitely relate to not enjoying support groups where the suffering is "valorized" to a certain extent. I think I was mostly reacting to the sentiment of superiority in general, but that is also an interesting case because it is pretty clear that families like that tend to have better outcomes overall (at least in monetary terms). My POV is that WASP culture in general breeds these perspectives, and also reinforces them because of the monetary and social inertia.
juliusgeo··on Ask HN: How do you prevent the impact of social media on your children?
I am someone who was raised with a very similar set of values. I was homeschooled, and often believed that "public-schooled" kids had a worse, more limited set of values. I was not allowed to use computers till I was in 11th grade, and dove into reading as an alternative. Very little screen time, but I ended up with a lot of issues that did not even begin manifesting until I was an adult. I would urge you to re-examine your beliefs around this topic. It is too easy to elide the issues by reframing them as "a bit of arrogance". Based on my own experience, listening to the people around me, they are not experiencing it as "a bit" of arrogance. It is too easy, almost intoxicatingly so, to believe that you are better than those struggling. As long as you frame your own struggles as unique, you will deprive yourself of both 1) commiseration and 2) knowledge on how to progress past. Rather than say "everybody who sought solutions to their issues had issues", ask the question "how many people that did have issues did not seek solutions".
juliusgeo··on Before Squid Game, there was Battle Royale
The outrage trilogy is amazing, I would also recommend Sonatine and Hana-bi.
juliusgeo··on Self driving 1993 Volvo with open pilot
There are many young people (myself included, though not nearly as skilled as most) that are modifying their cars in pretty substantial ways. Just in my own friend group there are multiple under 30 with their primary car being a heavily modified sports car. I myself own 2 relatively old sports cars (90s Acura, and 00's Audi), both obviously in manual, both of which have had significant work done in my driveway. The way that I would frame it instead is that the concentration of interest has increased. Nowadays with social media, etc, there are infinite ways to learn about, do, and compare various modifications to cars. People who do not care about cars are now in a position where essentially zero knowledge is required to use them as a method to get from A-B. However, those who are interested in it for process of building itself still exist, and the resources are better than ever. For the time that I've been around, I've been seeing increasing, not decreasing, interest in older car platforms primarily for the reason that they are easier to work on compared to new cars.
juliusgeo··on My Colleague Julius
I would also.
juliusgeo··on Engineering Sleep
Xyrem is just the brand name for GHB. The company that currently owns the rights (Jazz Pharmaceuticals) pled guilty to felony misbranding in 2011, and in 2013 raised the price by 841%. More recently, in 2017, they sued multiple other companies attempting to produce generics, before settling on an exclusive licensing agreement with one of them. Ironically the headline on their website is "Improving Patients' Lives", but I imagine they aren't reducing the price because Xyrem makes up 74% of total sales [1]. The entire thing reeks of PE--tons of acquisitions.

[1] https://en.wikipedia.org/wiki/Jazz_Pharmaceuticals

juliusgeo··on Car tires shed a quarter of all microplastics in the environment
Not really relevant to your overall point, but I found it interesting that apparently F1 already tried that:

In 2005, tyre changes were disallowed in Formula One, therefore the compounds were harder as the tyres had to last the full race distance of around 300 km (200 miles). Tyre changes were re-instated in 2006, following the dramatic and highly political 2005 United States Grand Prix, which saw Michelin tyres fail on two separate cars at the same turn, resulting in all Michelin runners pulling out of the Grand Prix, leaving just the three teams using Bridgestone tyres to race.

[1] https://en.wikipedia.org/wiki/Formula_One_tyres#History

[2] https://en.wikipedia.org/wiki/2005_United_States_Grand_Prix

juliusgeo··on Supreme Court blocks controversial Purdue Pharma opioid settlement
I can’t respond to any of your comments about policy, because you’ve never elaborated your ideas, and you seem to be assuming a great deal about mine and the other commenters.

1) Real heroin does not exist anymore in real life. All of it is varying cuts of fentanyl and research chemicals.

2) Your original comment asked the question “how many have died from oxy vs hepatitis”, which, along with your comments about heroin, made it clear that your knowledge isn’t up to date. It strains credulity to say that more people died of hepatitis than they did of the opioid they’re injecting into themselves regularly. Do you really think hepatitis is the root cause here? Or is it the proliferation of opioids much stronger than heroin. I’m sure you’ve heard of fentanyl and carfentanil, but there are entire other classes (such as Benzimidazoles) that have been rising to prominence in the last few years that are more dangerous.

3) I’m very anti DEA as well, and agree that prohibition kills. However, this is not simply a case of holding a manufacturer for a substance responsible. It’s what the Sacklers did after learning of the addictive power of these medicines that gives them culpability. It’s like a local bar serving someone even when they’re visibly drunk, which confers criminal responsibility if that drunk person later does something while under the influence. Making opiates == legal, being negligent == not legal. I wish we didn’t have a prohibition, and drugs could be acquired safely, but that doesn’t mean that the ends justify the means, and any drug manufacturer is automatically the good guy.

I just don’t think you’re approaching this subject with the care it deserves. It’s easy to make flippant comments blaming “Drug warriors” (genuinely confused what that even means—does that mean someone who is pro-prohibition?), it’s much harder to interact with the literal decades of research about this topic, and magnitudes harder to actually experience these things yourself. If you’d like a starting point, I found this report to be pretty approachable: https://www.rand.org/pubs/research_reports/RR3117.html. However, I wouldn’t be surprised if posing questions the way you have elicits emotional reactions from those who know people who have died. I lived through the first wave of fentanyl in the US, but I know quite a few who didn’t. Based off what i’ve been able to pick up out of all the vitriol, I think we would likely agree about the policy decisions, but your approach of making simplistic comments and then calling people evil based off of their response seems like an ineffectual strategy. And maybe it isn’t, but then you’d have solved the drug crisis already, right?

juliusgeo··on Supreme Court blocks controversial Purdue Pharma opioid settlement
That’s a good question. You should do some research. Maybe you can ask the families of the victims?
juliusgeo··on The Nissan GT-R Is Dead
it does not take years to learn how to do most things on cars, especially if you choose an older car. garage and truck are also not a requirement unless your race car is no longer street legal. I’m a novice and have managed to replace all the coolant lines and do some not half bad paint work on my car (90s Acura). Drifting does burn tires, but also doesn’t require your tires be in good shape (they’re gonna get shredded, and the goal isn’t to set the fastest time). Time attack and drag racing are where it gets really expensive, but there are cheap options like auto-cross: https://www.scca.com/pages/what-is-autocross.
juliusgeo··on Qlock – A JavaScript Quine Clock
best place is the code.golf wiki: https://code.golf/wiki/langs/javascript. They also have tips for other languages.
juliusgeo··on JetBrains releases RustRover IDE for Rust development
I’ve been using the pre-release version for a bit because I am a big fan of PyCharm. I found it very good besides the profiling interface. The “jump to source” option never works for some reason. Overall, though, provides a great experience.
juliusgeo··on I'm Coder
You can make ascii art with Python as long as the entire program is expression-only. I made a package that does something similar to the EyeDrops library mentioned in this thread, but for Python: https://github.com/juliusgeo/exprify.
juliusgeo··on USGS Historical Topographic Maps
I was obsessed with topographic maps as a kid—had the paper maps for most of the counties in my corner of my state. Led to an interest in geography, and is the reason my usernames on most platforms have been my name+geo for the last two decades. You could buy the quadrant maps at various general stores in my area, and bought a few of the larger county maps at the PA farm show. Those maps were huge—the size of a large rug, but incredibly detailed (showed individual houses outside of urban areas). At the time I was collecting them, the last survey had been done in the 1980s, and it was interesting seeing the in-progress highways marked that were at that time completely built. Looks like there was a gap in the surveys between 1984 and 2010 according to https://ngmdb.usgs.gov/topoview/viewer/, but now have been updated every ~3 years.
juliusgeo··on scrapscript.py
I think the website name is a pun based on the last name of its author.
juliusgeo··on Obfuscated Zip File Compressor in Python
A very minimal ZIP file compressor implemented with just the Python standard library (and formatted as ASCII art).
juliusgeo··on Show HN: Dlt – Python library to automate the creation of datasets
This is a really cool project—congrats! A somewhat related project that I worked on at MongoDB is PyMongoArrow, it does some of the same transformations to take unstructured MongoDB data and convert it to tabular formats like Arrow data frames. I’m curious what the support for BSON types that do not map cleanly to JSON types looks like? One example I can think of off the top of my head is Decimal128
juliusgeo··on Iopcc Winners
While all of the submissions are somewhat obfuscated, obfuscation is only one of multiple criteria (I created the contest :)) Check out some of the other submissions for more intense/novel obfuscation techniques!
juliusgeo··on International Obfuscated Python Code Competition: 2023 Winners
Added an archive of all the data. For the second point, are you referring to your browser downloading the file when clicking on it rather than opening in a new tab? They should be served as "text/x-python", which fixed that issue on Safari and Firefox.
juliusgeo··on International Obfuscated Python Code Competition: 2023 Winners
Directly inspired by the classic C coding competition, the IOCCC, the IOPCC's first year has concluded, and I am very excited to showcase the wonderful submissions. Information about each submission is contained in "remarks.md", and "spoiler.(mov|txt)" contains a demonstration of the submission's behavior.
juliusgeo··on Arrival's Designers Crafted a Mesmerizing Alien Alphabet (2016)
Thanks for the context--I wasn't aware of that.
juliusgeo··on Goodbye MongoDB
Disclaimer: I used to work for MongoDB.

I think that MQL is very difficult to write because of its verbosity—it simply requires so much text. Even as someone who regularly wrote and debugged MQL queries, it is just so verbose, but essentially is just an AST structure and doesn’t need that much verbosity. I created a library that attempts to solve that friction, but I have no idea if it’s still being maintained by MongoDB: https://github.com/mongodb-labs/pymongoagg

juliusgeo··on US hits Chinese labs over fentanyl
Yeah, consumption went down, but it caused numerous other issues that proved to be far greater. All you’ve shown is that reduced consumption of alcohol reduces the metrics of social problems associated with alcohol. That says nothing to my point which is that the other problems end up being far greater when you go in with such a profoundly callous mindset. Prohibition caused a 24% increase in crime overall with murder in particular going up 13%. And at the end of Prohibition people still drank and we still have all the same issues with alcohol and drugs now, just worse. And then Reagan tried the same approach again, and it failed again. How many dead bodies do you wish to see on top of the 100k overdoses to somehow solve this issue? Would a stack of dead bodies twice as tall satiate? At some point we as a society gotta realize that murdering people en-masse as a response to social issues is just not effective.
juliusgeo··on US hits Chinese labs over fentanyl
We tried that. It was called The Prohibition. It was a massive failure for many reasons but to your point: it created an environment where only the most violent, most criminal gangs end up controlling the entire market. The justifications given were also almost interchangeable with what you just said, mostly relating to scare tactics being perceived as a panacea to “society’s ills”. Most of the time if your solution is “scare people into doing what’s right” it’s been tried before by someone else and failed because it is a fundamentally broken method of solving societal issues in a meaningful way.
juliusgeo··on Show HN: Open-source resume builder and parser
Yeah, I see what you mean. In my case it is because I use LaTeX to create my resume, and my main concern is just that in some ATS systems it doesn't parse correctly and it would be nice to know when I'm making the resume, rather than when I apply for the job. For people without an existing opinionated workflow (likely the bulk), the resume scanner would be a good way to help them understand the value proposition of a unified builder that works with most ATS systems by design, rather than as an afterthought (which seems to be the case with most resume builders online besides this one).
Page 1 of 5Next →