Better HN
topnewbestaskshowjobs
Log inSign up

acidbaseextract

576 karma · joined Aug 7, 2016 (10y ago) · 160 submissions

Submissions

comment 5y ago · link · parent

30 minutes in and I still don't have a diff of the two CSVs... Has this program worked for anyone here?

    Diffing:   0%|                                | 153/93195 [30:02<151:31:17,  5.86s/it]
    Tightening Fringe Diagonal 82 of 792:  48%|...| 7453/15514 [00:30<00:35, 226.08it/s]

comment 5y ago · link · parent

It's cool, but does seem quite slow. I'm diffing two 45kB CSVs on a fast computer and after 10 minutes I'm still at:

  Diffing:   0% ... 0/93195 [00:00<?, ?it/s]
  Tightening Fringe Diagonal 48 of 792: ...

comment 5y ago · link · parent

Great site! I love the "What happens if you drink acetone?" article: https://dynomight.net/2020/09/14/what-happens-if-you-drink-a...

comment 5y ago · link · parent

The most frustrating thing is that pip doesn't make it easy to use more loose declared dependencies while freezing to actual concrete dependencies for deployment. Everybody rolls their own.

> Python libraries should not pin dependencies. _Applications_ can pin dependencies, including all recursive dependencies of their libraries.

Is the pypi package awscli an application or a library?

poetry is frustrating in that it doesn't allow you to override a library's declared requirements to break conflicts. They refuse to add support [1][2] for the feature too. awscli for example causes huge package conflict issues that make poetry unusable. It's almost impossible not to run into a requirement conflict with awscli if you're using a broad set of packages, even though awscli will operate happily with a more broad set of requirements than it declares.

[1] https://github.com/python-poetry/poetry/issues/697

[2] https://github.com/python-poetry/poetry/issues/697#issuecomm...

comment 5y ago · link · parent

It's maddening to hear people say things like, "Oh if everyone just used semantic versioning this wouldn't be a problem". Of course this cannot work. _Think about it_. There are innumerable ways two pieces of code can be incompatible. ... If you call these things "breaking" changes, you will constantly be increasing the major version.

One of the things that prompted the OP was this breakage in Python's cryptography package [1] (OP actually opened this issue) due to the introduction of a Rust dependency in a 0.0.x release. The dependency change didn't change the public API at all, but did still cause plenty of issues downstream. It's a great question on the topic of semver to think about how to handle major dependency changes that aren't API changes. Personally, I would have preferred a new major release, but that's exactly your point syllogism — it's a matter of opinion.

As a sidenote, Alex Gaynor, one of the cryptography package maintainers is on a memory-safe language crusade. Interesting to see how that crusade runs into conflict with the anti-static linking crusade that distro packagers are on. I find both goals admirable from a security perspective. This stuff is hard.

[1] https://github.com/pyca/cryptography/issues/5771

comment 5y ago · link · parent

I mean, 90% of my application is simple things. I mostly use the Django ORM and even more complicated joins, grouping and subqueries are predictable. I'm curious what ORM people are using that obscures the queries that are being emitted so much. For the 10% where things are complicated I will happily write SQL.

I wouldn't say the ORM is "for prototypes/pocs", but rather it should be the default and raw SQL is "complicated stuff only".

comment 5y ago · link · parent

Love it, thank you — the article already had my upvote! In particular SLC cache-aware tests and the inclusion of latency information (both average and 99th percentile) were both heartening to see. Too much crappy storage benchmarking these days.

Looking forward to seeing what you pick in terms of application benchmarks. I think application benchmarks help to keep us honest in terms of real-world impact of storage upgrades. LTT seeing if people could tell the difference between SATA and NVMe for games was great. I'm interested in database workloads, and the reason I was asking about the SN850 is that in Postgres benchmarks I've seen it has smoked the 980 Pro.

comment 5y ago · link · parent

Good benchmark suite, but missing two big PCIe 4 SSD contenders: the WD Black SN850 and the Sabrent Rocket 4 Plus!

comment 5y ago · link · parent

Of course, and I agree that marketing traction matters. I should have said this is an idle hope that some of these fancier metrics get published/leaked about TSMC/Samsung/Intel processes rather than that they become the metric. I do think MT/mm^2 or whatever is a strong candidate to become the thing. "megatransistors" is an exciting word.

comment 5y ago · link · parent

A nice approach I'm hoping will gain traction when discussing density across different types of logic is the "LMC" metric, as put forward by some TSMC and Stanford folks: https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9063714

Improved semiconductor device density directly translates into benefits for more advanced computing systems— the primary driver for progress in semiconductor technology. Thus, we propose the use of the following three-part number as a metric to gauge advancement of future semiconductor technologies: [DL, DM , DC ], where DL is the density of logic transistors (in #/mm2), DM is the bit density of main memory (currently the off-chip DRAM density, in #/mm2), and DC is the density of connections between the main memory and logic (in #/mm2). As an example, today’s leading edge technologies that are published in the literature [15]–[17] can be characterized by [38M, 383M, 12K]. As another example, 3-D stacking of multiple logic and memory dies can increase DL, DM, and DC .

comment 5y ago · link · parent

https://en.wikipedia.org/wiki/Dimethylmercury

"Heh" is an obnoxious response, as if an organic chemistry class wouldn't teach the basics of organometallics and some of the things that make compounds more or less dangerous.

comment 5y ago · link · parent

I would highly recommend Emery Berger's talks [1] for anyone interested in benchmarking software. The alignment and code layout in memory that huayra mentions has shockingly large performance implications.

[1] https://www.youtube.com/watch?v=r-TLSBdHe1A

comment 5y ago · link · parent

I've spent a lot of time in higher-order component and render prop hell — so many layers of indirection. The declarative behavior that HOCs and render props enable is one of the best parts of React, used in libraries like react-motion. But man, debugging layers of render props makes me itch.

Hooks have been a savior for me. I agree that there are a lot of sharp edges with hooks, but they're not magic. They're powerful and they compose really well. If you're doing anything behaviorally complicated on a React app, it's easy to build whatever abstraction is appropriate to your project.

comment 5y ago · link · parent

> Have you used a web browser? Do you see how it handles known content types from a new website that you haven't previously visited seamlessly without you reading docs and telling it what to do with it?

I want to get my job done with an API, not browse it. I spend most of my time figuring out what order endpoints need to be called in and what data they need to be passed, not what the endpoints are.

The shittiest HTTP APIs I've used had full lists of endpoints but nonexistent documentation of arguments. If HATEOAS solves that I can get behind it, but I don't think it does.

comment 5y ago · link · parent

Protip for people that spend a lot of time on Github: press the letter "t" when browsing a project to fuzzy find on filenames like fzf in Github.

comment 5y ago · link · parent

I think your self diagnosis is on point. Where games fit into your life is hard to address within a world of background judgemental thinking and self-criticism. It might be easier to focus on cultivating more self-compassion first, then reexamine your questions above.

I'm not affiliated, but check out the HealthyGamerGG channel on Youtube. He's a Harvard psychiatrist does interviews/counseling streams on twitch that are pretty cool, and deal with a lot of millenial/zoomer gamer mental health issues. Here's one that spoke to me about failure and expectations: https://youtu.be/hzkgIOzBP7w

comment 5y ago · link · parent

Highly recommend this book as well. The psychology he discusses I've found very relevant to life in general. Often I've wished something in my life was better and found self-imposed handicaps or my true goals differing from my stated goals (eg. really wanting esteem from peers even though business success is my stated goal) being the source of my difficulty. Exactly the "scrub mentality" Sirlin discusses in PtW: http://www.sirlin.net/ptw-book/introducingthe-scrub

comment 6y ago · link · parent

No. The server can inspect its GraphQL schema (what the frontend will be querying against) and emit Typescript types to type check against. If someone changes a field name on the backend, type checking the frontend will fail in all the places that expected the original name. No grepping around and chasing chains of passed data.

comment 6y ago · link · parent

But the entities, names, dates, and photo URLs in my database are exactly what I want to show on the frontend, by and large. Maybe a join, aggregation, or something in there.

comment 6y ago · link · parent

Spotify != Shopify

comment 6y ago · link · parent

It was very model specific. 5950Xs and 5900Xs were gone within a few seconds, 5800Xs were up for a few minutes, and 5600Xs were available for almost an hour in some cases.

This aligns with reports of retailer inventory, where availability of high end models was extremely limited, but there were many more of the mid-tier models.

comment 6y ago · link · parent

Eh... enjoyable is subjective. At subrecreational, subanesthetic doses, it can make you feel really fucking weird. It's not bad, and it's certainly survivable given that you're dissociated from it — but it makes me feel really weird.

As to monoideism's question: I'm not a doctor, but ketamine is more benign than many other anesthetics especially at the lower doses used in treating depression. Do your homework, but don't rule it out based upon prior experiences with other anesthetics.

comment 6y ago · link · parent

I've struggled in past with major depression as well, and had a similar experience with ketamine. Though I had to resolve the life situations that contributed to the depression, ketamine lifted my existential apathy enough to help me get it done.

comment 6y ago · link · parent

Cool — one of the major blockers on moving to Linux for me was fractional scaling support. I have 4K monitors but can't use them with tiny text.

I like PopOS a lot, but they didn't have fractional scaling support. It looks like they do now as of Oct 5!

comment 6y ago · link · parent

If you're an analyst, I second the recommendation for dbt. Here's a podcast interview with the CEO of the company behind dbt that explains a lot of the philosophy, and I think will help you even if you don't end up using dbt: https://softwareengineeringdaily.com/2020/03/09/dbt-data-bui...

comment 6y ago · link · parent

Check out https://github.com/metabase/metabase . I'm not clear on their open source vs paid model, but I'm pretty sure you can host it yourself and their core is open source.

comment 6y ago · link · parent

There's a library: https://sumtypes.readthedocs.io/en/latest/

It's serviceable, and even does static checking of total coverage of cases. I will say that it makes linters freak out.

comment 6y ago · link · parent

The representational debt the parent comment is referring to is akin to that quip, "if I had more time, I would have written a shorter letter."

I find that both types of representational debt are common.

comment 6y ago · link · parent

The one recommended in the article via Amazon is the model U518CV-UM while that one at Walmart is the model U515CV-U. No idea what the difference is.
123456