Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kccqzy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
721.
▲
by
kccqzy
9mo ago
And you had the same misunderstanding as OP. Because you have eliminated all macros during the preprocessor step, you can no longer have macro-based APIs, including function-like macros you expect library users to use, #ifdef blocks where y
722.
▲
by
kccqzy
9mo ago
Completely agree. My employer makes all employee badging data available. Any employee can view whether any other employee has badged into the office and when. This includes viewing whether your boss has come in. However badging data is much
723.
▲
by
kccqzy
9mo ago
> Write a program to extract all the function declarations from a C header file that does not contain any macro-preprocessor directives There you go. You just threw away the most difficult part of the problem: the macros. Even a medium-s
724.
▲
by
kccqzy
9mo ago
The C language is too complicated and too flexible to allow that. If you are starting from scratch and creating a new language, this could be a design goal from the beginning.
725.
▲
by
kccqzy
9mo ago
> No sane programming language should require a duplication in order to export something (for example, the full function and its prototype) You are spoiled by the explosive growth of open source and the ease of accessing source code. Lot
726.
▲
by
kccqzy
9mo ago
Steve Jobs never announced a price ceiling for apps on the App Store. The well-known I Am Rich app for iPhone retailer for $999, the actual price ceiling.
727.
▲
by
kccqzy
9mo ago
If it was enabled, why can Apple still demand 30% cut here? Couldn’t Patreon just switch to external payment processors citing the Epic case?
728.
▲
by
kccqzy
9mo ago
In practice I’ve seen apps just game the system by (1) using IAP using the normal flow, and (2) giving user a button unrelated to purchasing that would open a new WebView, which just happens to contain a purchase button.
729.
▲
by
kccqzy
9mo ago
Another time when writing a quick and dirty spinlock is reasonable is inside a logging library. A logging library would normally use a full-featured mutex, but what if we want the mutex implementation to be able to log? Say the mutex can lo
730.
▲
by
kccqzy
9mo ago
Of course. Transformers were originally invented for Google Translate.
731.
▲
by
kccqzy
9mo ago
This is really useful! I only knew about -mcmodel during compilation but I didn’t know the linker would insert thunks for faraway branches. I would’ve thought that the linker would simply complain and ask you to recompile with a larger code
732.
▲
by
kccqzy
9mo ago
> There's a lot of value in having direct manipulation and visual introspection of UIs, data, and logic. Those things allow less technical people to understand what the agents are creating, and ask for help with more specific areas.
733.
▲
by
kccqzy
9mo ago
Around the time Aperture became dead, I was looking for a photo editing app on the iPhone; three of my non-negotiable requirements: non-destructive adjustments, curves, and the ability to brush a mask for an adjustment. I found Snapseed whi
734.
▲
by
kccqzy
9mo ago
If you assume a person’s chair height and desk height are both set optimally, then I guess the person’s height doesn’t matter for this detection.
735.
▲
by
kccqzy
9mo ago
It’s a cultural thing. If a Chinese person steeped in that culture of “low, quiet, unseen” strength came to America as an immigrant, that person would likely not do very well. If the person immigrated as a child, schooling in America will q
736.
▲
by
kccqzy
9mo ago
> The hard part of quant is implementation, making sure your data is right, hunting through poorly understood markets, and managing risks carefully and understanding them. In my experience I have seen far more division of labor than you
737.
▲
by
kccqzy
9mo ago
> It’s a component-based language that statically analyzes changes at compile-time to enable O(1) reactivity. Unlike traditional frameworks, there is no Virtual DOM overhead This itself is quite cool. I know of a project in ClojureScript
738.
▲
by
kccqzy
9mo ago
Yes. And it doesn’t have to be titanium per se. Cerabyte is trying to use ceramic. Even rocks might be good enough.
739.
▲
by
kccqzy
9mo ago
I don’t see that at all. Instead, I think tech workers, including the engineers and the product managers, are correctly prioritizing user convenience over resistance to government abuse. It’s honestly the right trade off to make. Most users
740.
▲
by
kccqzy
9mo ago
I don’t think you understood my comment. > You absolutely should not need root to be able to run software that doesn't require root privileges. But root can approve or disapprove you running that software. Have you heard of SELinux
741.
▲
by
kccqzy
9mo ago
No it’s not common for two pieces of code within a single process to communicate by serializing the protobuf into the wire format and deserializing it. It’s however somewhat common to pass in-memory protobuf objects between code, because th
742.
▲
by
kccqzy
9mo ago
> I cannot install it as nonroot user Sure you cannot install docker or podman as a non-root user. But take your argument a bit further: what if the kernel is compiled without cgroups support? Then you will need root to replace the kerne
743.
▲
by
kccqzy
9mo ago
Mail just sometimes refuses to issue a server-side search via IMAP. It insists that it wants to search its offline database of downloaded mails. When it cannot find anything, it will even tell you that “Mail downloads and organizes messages
744.
▲
by
kccqzy
9mo ago
NAT66 is evil but it is a necessary evil. There are certainly situations where using NAT66 is the best way.
745.
▲
by
kccqzy
9mo ago
Patents are supposed to protect the inventor’s interest. The trick is to divulge enough details to get protection, but not enough that competitors can just copy. So if a patent says “a hydrofluoric acid-based etchant” you can almost be sure
746.
▲
by
kccqzy
9mo ago
No. You either design the site to be fully responsive (which would necessarily include CSS changes), or leave out that line. If your CSS assumes a desktop layout, it is strictly better not to set the viewport width to device-width so that t
747.
▲
by
kccqzy
10mo ago
You can also do that intentionally and correctly. After all `delete this;` is a valid statement that can occasionally be useful. That said, I’ve only seen this in old pre-C++11 code that does not adhere to the RAII best practice.
748.
▲
by
kccqzy
10mo ago
I’ve said this before, and I’ll say it again: the nano texture screen decreases the apparent pixel density, so much that my eyes don’t perceive them as retina screens. With nano texture, my eyes feel like looking at individual pixels even t
749.
▲
by
kccqzy
10mo ago
That’s just the justification for the individual responsibility penalty. SCOTUS justified the penalty by saying it is a tax on inaction.
750.
▲
by
kccqzy
10mo ago
Yeah but for this accident both trains were well below 300 km/h at the incident site. Around 210 km/h I think.
More ›