Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kaslai
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
kaslai
6y ago
While the default behavior of this library is to map the entire file into address space (and also the default assumption that people have regarding mmap), you can map specific portions of a file into memory to avoid virtual address exhausti
32.
▲
by
kaslai
6y ago
A lot of "local restaurant order forms" are actually sites set up by the likes of GrubHub, Uber Eats, etc. Not all of them, but it's one of the sneaky ways they use to insert themselves.
33.
▲
by
kaslai
6y ago
If I recall correctly, it has always cost roughly as much as Photoshop during Adobe ownership. That is to say: prior to the Adobe CC pricing model, Flash cost many hundreds of dollars. I did a quick spot check on Archive.org and it looks li
34.
▲
by
kaslai
6y ago
I was mainly alluding to their attitude towards refurb and repair. While they are not really any more or less disposable than other brands, Apple corporate policy strongly encourages disposing of items which could trivially lead much longer
35.
▲
by
kaslai
6y ago
I wouldn't really call it coercion. It's Apple's attempt to make a genuinely better product that costs them less to produce as far as I can see. Yes, the products do strike me as highly disposable but then again that has basi
36.
▲
by
kaslai
6y ago
"to each machine" implies that there's more than one machine with 64 drives attached.
37.
▲
by
kaslai
6y ago
In the MySQL vs PgSQL comparison, it basically feels like MySQL tried to obtain fast performance first, then worked towards correct and useful behavior later, where PgSQL went for correct and useful behavior first, then fast performance lat
38.
▲
by
kaslai
6y ago
This was pretty much my thoughts too. This use case is quite a bit outside of the realm of what Wordpress is intended to be used for. Local deployments are only really intended to be for people who are serious about administrating their own
39.
▲
by
kaslai
6y ago
That's actually not too bad for a multi-color e-ink display. The last color e-ink display I looked at had an even longer refresh interval.
40.
▲
by
kaslai
7y ago
I feel that if Verisign wanted to actually do some good, they would have negotiated a retail minimum price rather than just raising their wholesale price. The registrar space is already a race to the bottom, so if Verisign made that bottom
41.
▲
by
kaslai
7y ago
> expecting prices to stay fixed for for the same goods goods is not reasonable. It's actually highly reasonable for items with nearly zero marginal cost. In fact, most things in the tech world only get cheaper in nominal value as t
42.
▲
by
kaslai
7y ago
Here are some quick numbers: At the end of 2019, Verisign had 158.8 million domains registered. At a price of $7.85/year, that's about $1.247 billion in expected revenue for 2020. If we assume that the number of domains remains st
43.
▲
by
kaslai
7y ago
My typical pattern is to use pointer types as a pseudo-optional type. There is the additional cost of dealing with a pointer on the Go side though, which can get cumbersome at times. `database/sql` does have an interface which lets you
44.
▲
by
kaslai
7y ago
Yeah, around me you can get simple drip coffee from Starbucks for about 1/2 to 1/3 the cost of an espresso based drink. Last I was there, I think the biggest drip cup they offered was around $2.30 and the smallest was about $1.50.
45.
▲
by
kaslai
7y ago
So that means JS strings aren't truly immutable in a modern environment (which is fine). The runtime environment is internally using an approach similar to a string builder, which is a good optimization. I agree that you shouldn't
46.
▲
by
kaslai
7y ago
String builders are often not a critical optimization, however the additional cognitive burden on the reader is nearly zero. In some languages, string builders can even overload operator += which makes the type of the object the only visibl
47.
▲
by
kaslai
7y ago
> First rule of optimization is to not do it. This is an unfortunately common misunderstanding of the phrase: "premature optimization is the root of all evil." Optimization is a crucial part of developing successful software. I
48.
▲
by
kaslai
7y ago
I can't really effectively screenshot what makes it different. The feel of using it is a bit different than you'd expect by even watching a video. The bar itself is only a few pixels wide and when you approach it with your cursor,
49.
▲
by
kaslai
7y ago
Also, (almost) all humans have two feet because shoes come in pairs of two. /s
50.
▲
by
kaslai
7y ago
Typically when people talk about that, they mean they want to move from an approach where files have a location to an approach where files are queried based on metadata. So rather than going to /home/kaslai/images/ to (h
51.
▲
by
kaslai
7y ago
Derek explains the physics in a reasonably understandable manner in this video on his Youtube channel: https://www.youtube.com/watch?v=zUyH3XhpLTo
52.
▲
by
kaslai
8y ago
You say they are basic syntax errors but fixing them is not the place of the application. "usergmail.com" could have the @ at basically any spot before the I and be a totally believable email address. Sure, statistically speaking,
53.
▲
by
kaslai
8y ago
Recipients of cash tips must report the income to the IRS for taxation purposes. The fact that many people choose to refuse to disclose their cash tip earnings doesn't mean that I should bulk up my taxes to make up for their fraud.
54.
▲
by
kaslai
8y ago
I've even seen .c++/.h++ in the wild at least once.
55.
▲
by
kaslai
8y ago
There are plenty of file formats that have multiple extensions in common use. I can think of a few off the top of my head: - .jpg / .jpeg - .tif / .tiff - .htm / .html - .cpp / .cxx It's frustrating at times, but no
56.
▲
by
kaslai
8y ago
In my experience, Golang was designed to be safely written and understood by people of just about any skill level, assuming basic programming competency. There's basically only one or two neat hacks in the language that are somewhat un
57.
▲
by
kaslai
8y ago
Yep. 2000 calories is 2.32 watt hours. 2000 Calories (kcal) is 2.32 kWh. That alone should be enough to clarify the difference, especially if you've ever manually turned a dynamo. Even after energy losses, a person can push a few watt
58.
▲
by
kaslai
8y ago
Sort of. The technical cost is effectively zero, as everything technical which is required by GDPR ought to be done anyways. However, there are a lot of non-technical compliance issues in meatspace that have a very real cost. Most of that c
59.
▲
by
kaslai
8y ago
I've had serious weight issues for my whole life, primarily due to my love of chocolate. As I approached 400 pounds, I took a hard look at myself and decided to make a change. For the past month (29 days now) I've been doing alter
60.
▲
by
kaslai
8y ago
Sometimes tweaks like these might only save 10-20 cycles, which in a vacuum doesn't sound like much, until you consider that before the tweak, it started at 26 cycles and is now 6 cycles, and it's called 50 million times every sec
More ›