Hacker Newsnew | past | comments | ask | show | jobs | submit | fucalost's commentslogin

This is exceeding the scale of the Tiananmen Square Massacre as far as death toll is concerned*

*According to a leaked diplomatic cable: https://www.axios.com/2018/01/05/declassified-cable-estimate...


Like how they always show Mao even with that KD ratio

This looks great OP. Do you have anything on the roadmap that you’d be open to receiving PRs for? I noticed there weren’t any issues in the repo and would be keen to lend a hand!

Definitely open to PRs! Still early days so lots of room for improvement. Feel free to open an issue if you have ideas.

Sorry to be a hater, but wouldn’t using Pydantic be better in almost every circumstance here?

Pydantic is great lib and and has many advantages over Jsonic,

I think main use cases for Jsonic over Pydantic are: - You already have plain Python classes or dataclasses and don’t want to convert them to BaseModel - You prefer minimal intrusion - no inheritance, no decorators, no schema definitions - You need to serialize and deserialize Pydantic models alongside non-Pydantic classes

Having said that, Pydantic is the better choice in most cases.

This is also why Jsonic integrate natively with Pydantic so you can serialize Pydantic models using Jsonic out of the box


I can see that. Pydantic is great but relatively slow (which matters on edge devices) and can be bloated.

The fact that all your projects use Pydantic makes it an easy starting point and created standardisation - of course.

Nevertheless, I can definitely see some use-cases for lightweight JSON-serialisation without bringing in Pydantic. Dataclasses are great, but lack proper json handling.


It feels so odd (in a good way!) to see people talking about A&A - I recommend them to everyone I know, they’re truly excellent.


This! People underestimate the extent to which lawyers are negotiable also. “I’m not paying that” is a surprisingly effective method; they’re often willing to compromise on payment terms, work at-risk subject to a successful outcome, significantly reduce their rates, etc.


In my experience, most people underestimate what's negotiable across the board. Especially those making enough to do most of their business with mass-market operations, like big-box stores and retail service providers, that profit by doing many, many standardized transactions every day, with minimal discretion or even personal involvement.

Below that, lots of haggling and informal trade often help people get by. The costs of that process can be another burden on the poor. At the high end, it's worth involving people with discretion on the sell side. Additionally, sales are often one-off and customized. They may also bundle a bunch of different items and benefits without clear line-item breakdowns.

When hiring a lawyer, I'd nearly always recommend getting terms down in a written and signed engagement letter before work starts. That is very much a negotiation, but it's fine to ask questions and comparison shop.

If you're starting with a call, it's perfectly normal to start by asking whether initial consultation will be billed or not. If it will be, ask the rate. If it won't be, expect some limits on what can be discussed. The best lawyers I know aren't cheap or easily tricked into giving free advice on consultation calls with speedrunners, but they are up-front about what they charge for and how.

Disclosure: Am lawyer. Negotiate professionally.


+1 for OpenSearch, especially with UltraWarm nodes


I actually really like Elasticsearch. It’s very powerful, there’s a healthy ecosystem of tools (increasingly for OpenSearch too), and the query language makes sense to me.

Sure it’s computationally expensive, inefficient even, but for many use-cases it just works.

I’d add that for production deployments, AWS has developed a new instance family that enables OpenSearch data to be stored on S3 [1], bringing significant cost savings.

[1] https://docs.aws.amazon.com/opensearch-service/latest/develo...


For what it’s worth, I recently travelled to the US from the Middle East (into Houston) and was also concerned about this.

My solution was to delete apps I didn’t want to be searched (e.g. WhatsApp) after having made a cloud backup, then enabling airplane mode.

CBP’s website [1] states:

> Prior to beginning a basic or advanced search, CBP Officers will ensure all data and network connections are disabled

And no, I wasn’t searched (thankfully!)

[1] https://www.cbp.gov/travel/cbp-search-authority/border-searc...


depending on the length of these texts — and your technical ability — you might want to check out AWS Textract

it would be easy to set up a pipeline like:

> drop pdf in s3 bucket > eventbridge triggers step function > sfn calls textract > output saved to s3 & emailed to you


From my limited interactions with document-intensive sectors (i.e. legal), I think they’re sorely lacking something like this.

When the same document is edited by two separate individuals and diverges, it is a nightmare to reconcile the two.

I truly wish (i.) Microsoft Word was a nicer format for VCS, or (ii.) Markdown was more suitable for “formal” legal texts and specifications — probably in that order (!)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: