Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
emptysea
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
emptysea
5y ago
Is the “pretty optimized headless browser” an off the shelf thing, or something custom? Are you using playwright/puppeteer to drive it?
152.
▲
by
emptysea
5y ago
Is smokescreen an alternative to Squid? Seems like they cover similar ground, but I’ve never heard of smokescreen before. https://github.com/squid-cache/squid
153.
▲
by
emptysea
5y ago
Why doesn’t test mode work for testing?
154.
▲
by
emptysea
5y ago
Never seen that before, looks good!
155.
▲
by
emptysea
5y ago
Also used DRF in prod, the serialization in particular is super slow. Also no asyncio isn’t great in this day and age. Plain django, without DRF, just using JsonResponse is pretty great TBH, has all the batteries for things like auth and te
156.
▲
by
emptysea
5y ago
What does CDO mean in the context of Amazon?
157.
▲
by
emptysea
5y ago
Interesting! I'm also surprised thunderbird's written in JS and not C++.
158.
▲
by
emptysea
5y ago
Ultimately what matters is the entire application, database queries and all, works. I think calling out to the DB in tests is important for ensuring the entire app works. And tests hitting the database can be fast: https://www.br
159.
▲
by
emptysea
5y ago
I'm curious how that would work with typescript since it's adding extra props like `css` and `tw` to components which don't exist in the types
160.
▲
by
emptysea
5y ago
I'm curious how this system handles permissioning aka preventing a random user from querying the rest of the DB. Firebase has some bespoke config that is dependent on all your data being in a key value mapping. I wonder how that would
161.
▲
by
emptysea
5y ago
Not the parent, but presumably it would allow for fancy monad stuff like Scala's Cats Effects[0] and Zio[1] which can make async programming easier to follow without having to introduce async/await [0]: https://typeleve
162.
▲
by
emptysea
5y ago
Interesting, even some open source sites like: https://fbinfer.com are down but https://glean.software and https://reactjs.org aren't
163.
▲
by
emptysea
5y ago
Linters can check for this sort of thing, for example Error Prone[0] has a lint[1] for this. Totally agree this is better to be in the language proper so we don't need this extra tooling. [0]: https://errorprone.info [1]:
164.
▲
by
emptysea
5y ago
Crunchbase says they only raised $125k so even if they were acquired for a few million, they likely made out okay.
165.
▲
by
emptysea
5y ago
Interesting, trying it out on Discord the default max msg size is 2000 chars and with Discord Nitro the max is raised to 4000 chars. Testing with Postgres, a 2000 char random sequence doesn't result in TOASTing, but a 4000 random seque
166.
▲
by
emptysea
5y ago
Why would the text data be stored in TOAST? My understanding was PG only uses TOAST when the data is too large to fit in the row, and since PG compresses data before inserting wouldn't user messages be fine?
167.
▲
by
emptysea
5y ago
I'm curious how the type hints for the `__init__` method are derived from the properties in the class without a type checking plugin Nothing stuck out to me when perusing through the code Edit: seems pylance can figure it out but mypy
168.
▲
by
emptysea
5y ago
I'm curious why the IIFE is even necessary in this case. There is already a top level await in the `for await` right? Looks fine IMHO once the IFFE is removed: for await (const conn of Deno.listen({ port: 4500 })) { for awa
169.
▲
by
emptysea
5y ago
In V8 I believe it's limited by the stack size and when you get a stack overflow that gets converted to a RangeError in JS land. OTOH, Webkit and Firefox have arbitrary limits 65537, and 500k args. https://bugs.webkit.org&#x
170.
▲
by
emptysea
5y ago
Got to be careful with the argument spread, since depending on the JS engine and how large the `list` is, you can end up with a RangeError e.g., Math.max(...Array(100_0000).fill(0)) results in: Uncaught RangeError: Maximum ca
171.
▲
by
emptysea
5y ago
Curious if there’s anything public about improving ruby performance from the I/O angle mentioned in the post. Also interesting to see Mypyc, Pyre related AOT compiler (forget the name), and now this. Great to see! We’d gladly compile o
172.
▲
by
emptysea
5y ago
Leetcode will teach you algorithms assuming your read the solutions and various tutorials on the site. You might have more breadth by taking a course though — there are only so many algorithms that fit into a LC style problem.
173.
▲
by
emptysea
5y ago
Never seen tiptip before, looks pretty slick. At work we need only the most basic customization (some inline spans for template vars) and we've cobbled together a Draft.JS implementation that's pretty buggy and has random runtime
174.
▲
by
emptysea
5y ago
I'm curious how Slack does their e2e tests, are they spinning up every dependent service for each PR or are there some long running services shared among the PRs? Related, are the databases and storage (e.g., s3) populated with fake da
175.
▲
by
emptysea
5y ago
At $work we use Tray to sync salesforce and some other CRMs to our database. Tray advertises a no-code solution and it has to be the most brittle part of our entire platform. It’s common for their API to time out for even the most basic thi
176.
▲
by
emptysea
5y ago
Design at my current place doesn't include loading and error states in their designs so we have to free hand those ourselves. IMHO, loading states and error states are one of the more important parts of the design since they'll be
177.
▲
by
emptysea
5y ago
One thing I miss when using VSCode is the lack of spell checking compared to Sublime or even Vim. I think a CLI might be nice, but even then typos in code aren't such a big deal IMO. Sometimes they do come up with copy in UI code, but
178.
▲
by
emptysea
5y ago
Helpful explanation. I think a lot of the trouble for me in understanding GADTs is the Haskell syntax used in a lot of examples. My static typing experience is limited to TypeScript and Rust, so I'm curious what a GADT would look like
179.
▲
by
emptysea
5y ago
I wonder if that's a mypy issue or more that the typeshed types are bugged, since type shed versions also get shipped (used to?) with new type checker versions. https://github.com/python/typeshed
180.
▲
by
emptysea
5y ago
I'm curious what you mean by "iterating variables have to be predeclared". In my experience mypy's type inference works with bog standard python constructs like a for loop that appends into a list that gets declared befo
More ›