Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alangpierce
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
alangpierce
1y ago
> What if you just... removed the AI part? Maybe I'm not fully understanding the approach, but it seems like if you started relying on third-party MCP servers without the AI layer in the middle, you'd quickly run into backcompa
2.
▲
by
alangpierce
3y ago
The state already puts a lot of resources into improving road safety, and that's one of the primary goals of the DMV, DOT, etc. There's reason to believe that driverless cars will greatly improve road safety, so it feels reasonabl
3.
▲
by
alangpierce
3y ago
Interestingly, the ChatGPT Plugin docs [1] say that POST operations like these are required to implement user confirmation, so you might blame the plugin implementation (or OpenAI's non-enforcement of the policy) in this case: > for
4.
▲
by
alangpierce
3y ago
This article argues that there's no reliable way to detect prompt injection: https://simonwillison.net/2022/Sep/17/prompt-injection-more-... One solution to some indirect prompt injection attacks is prop
5.
▲
by
alangpierce
3y ago
Agreed that if you focus on any specific task, there's a safe way to do it, but the challenge is to handle arbitrary natural language requests from the user. That's what the Privileged LLM in the article is for: given a user promp
6.
▲
by
alangpierce
3y ago
Giving different permissions levels to different email senders would be very challenging to implement reliably with LLMs. With an AI assistant like this, the typical implementation would be to feed it the current instruction, history of int
7.
▲
by
alangpierce
4y ago
It looks to me like the profile viewer is actually speedscope ( https://www.speedscope.app/ ). I find it nicer for exploring profiles compared with Chrome's built-in viewer. To use with Node.js profiling, do the `node
8.
▲
by
alangpierce
4y ago
Like any transpiler, Sucrase can be run in parallel by having the build system send different files to different threads/processes. Sucrase itself it more of a primitive, just a plain function from input code to output code. > What
9.
▲
by
alangpierce
4y ago
Hi, Sucrase author here. To be clear, the benchmark in the README does not allow JIT warm-up. The Sucrase numbers would be better if it did. From testing just now (add `warmUp: true` to `benchmarkJest`), Sucrase is a little over 3x faster
10.
▲
Locast suspends local TV streaming service in wake of court ruling
(techcrunch.com)
3 points
by
alangpierce
5y ago
|
0 comments
11.
▲
by
alangpierce
5y ago
itertools.groupby isn't really the groupBy operation that people would normally expect. It looks like it would do a SQL-style "group by" where it categorizes elements across the collection, but really it only groups adjacen
12.
▲
by
alangpierce
6y ago
The big difference, I think, is that dx87's post encourages the reader to make fewer assumptions and to keep an open mind ("While we don't know the details, it's entirely possible..."), while your bullet points ar
13.
▲
by
alangpierce
6y ago
FWIW I find that TypeScript types can sometimes be overwhelming or hard to decipher, especially some third-party library type definitions. The connect function from react-redux is one example: https://github.com/DefinitelyTy
14.
▲
by
alangpierce
6y ago
Great project, really expands what feels possible with the new improvements in TS 4.1. I wonder if this strategy could also be used to have strongly-typed GraphQL queries without the need to have a type generation step that you run separate
15.
▲
by
alangpierce
6y ago
I use gitk pretty often and really like the fact that it acts like a modal, showing a richer UI visualization based on a shell command I run, and when I close it, I'm back to the command line where I was. I've been hoping to write
16.
▲
by
alangpierce
6y ago
> the downside of functional testing is that it's slower This is certainly true in some situations, but not all, and I think it's important to make decisions based on the tech stack and tools available. For example, I've f
17.
▲
by
alangpierce
6y ago
> We usually work on challenging problems At least for me (as someone who's more often answering the questions at my company), this varies quite a bit. Certainly sometimes there's a deep technical problem or an issue requiring
18.
▲
by
alangpierce
6y ago
In case others are also confused by: > The first screen is a long scroll of 20 elegant looking blocks and titles none of which mean anything on their own. The page behaves differently on mobile vs desktop, and that quote is a description
19.
▲
by
alangpierce
6y ago
Certainly many of them do, but there are also plenty of people who want to focus on investments that also have a positive impact: https://en.wikipedia.org/wiki/Socially_responsible_investing One specific example of a r
20.
▲
by
alangpierce
6y ago
Hi, Sucrase author here. I'm also having a hard time understanding the rationale here, but it looks like it's maybe a nuance around self-hosting. In general, for any regular TS project, I'd certainly recommend decoupling type
21.
▲
Impossible Foods slashes wholesale prices by 15%
(cnbc.com)
1 points
by
alangpierce
7y ago
|
0 comments
22.
▲
by
alangpierce
7y ago
I solved this using the ts-interface-builder and ts-interface-checker libraries and have been happy with the result. You write a plain TS type (rather than a custom syntax like io-ts has) and then run a codegen step to make a runtime repres
23.
▲
by
alangpierce
7y ago
It was an attempt at standardizing a browser setting to opt out of tracking, but it was ultimately unsuccessful. https://en.wikipedia.org/wiki/Do_Not_Track
24.
▲
by
alangpierce
7y ago
Got it. So I understand, maybe someone saved a filename as the latin-1 encoding of some non-ASCII text, and Mercurial would need to support such files (but also would have no contextual information that it's latin-1)? I'm tempted
25.
▲
by
alangpierce
7y ago
It's interesting that they wanted to add b' prefixes to all strings, and I wonder if they would have had a better experience by embracing regular strings instead. At least in Python 3, if your string only contains ASCII, then the
26.
▲
by
alangpierce
7y ago
Sorry, I wasn't meaning to dismiss the point wholesale, just saying to be cautious of an "appeal to authority"/"appeal to precedent" sort of argument, especially in this case. I do think the severity was at lea
27.
▲
by
alangpierce
7y ago
Hammurabi's code probably isn't a great example when looking for precedent on appropriate punishment. Another example from your link is 210: "if a man kills a pregnant woman, the punishment is that the man's daughter sha
28.
▲
by
alangpierce
7y ago
On Mac, Control+Command+Space brings up the emoji picker. Every OS has something like that these days, I'm pretty sure.
29.
▲
by
alangpierce
7y ago
Unicode and Punycode were originally designed for letting computers handle the wide variety of human writing systems, common ones like Chinese and Arabic, as well as rarer ones. Much more recently, the emoji characters were added to that sa
30.
▲
by
alangpierce
7y ago
Cultured meat is supposedly getting pretty close, maybe the next few years, though maybe longer. https://www.memphismeats.com/ is one company doing it. I'm vegetarian and I would definitely eat it, and most of my veget
More ›