Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
swift
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
swift
2y ago
Regular expressions are part of the language, so it's not so unreasonable that TypeScript should parse them and take their semantics into account. Indeed, TypeScript 5.5 will include new support for syntax checking of regular expressio
2.
▲
by
swift
7y ago
I agree with a lot of your comments, but just FYI, you can do a couple of those things: > (I can't even compile FOSS apps on my own without owning a mac + 100$/year dev licence - this is a real shit show for me!) You do need a
3.
▲
by
swift
7y ago
There are definite tradeoffs here, but one thing to consider is that dev tooling generally can't benefit from that kind of massively distributed parallelism. If you make a change to a widely-included header file, code intelligence tool
4.
▲
by
swift
8y ago
FWIW, Bison (which I'd expect most people are using rather than the original yacc, though I can't be sure) does support GLR parsing. I haven't seen GLR used in production either, but my experience with projects I've been
5.
▲
by
swift
8y ago
PEG uses ordered choice instead of alternation; all PEGs are thus deterministic. The article's description of PEG is so off-base that it makes me question the entire article.
6.
▲
by
swift
9y ago
The compression MP4 (or any other modern video format) offers is much better than what you can obtain with GIF. MP4s are, perhaps surprisingly, actually the better choice in terms of bandwidth and load time.
7.
▲
Ask HN: HN users keep using verbatim blocks for quotes. Can we fix it?
2 points
by
swift
9y ago
|
1 comments
8.
▲
by
swift
9y ago
The hypothesis that life on Earth originated elsewhere is somewhat independent of abiogenesis, really. At least in my experience, most supporters of the former also support the latter.
9.
▲
by
swift
9y ago
2 works on macOS too, for what it’s worth. (My memory of this, which may not be entirely reliable, is that Linux and OS X both had 2 forever. I wish I could say the same for 1.)
10.
▲
by
swift
9y ago
There’s definitely a schism along the fault lines you describe. If you’re not familiar with the concept of a “TERF”, look it up.
11.
▲
by
swift
9y ago
I’m probably making a mistake here by commenting before reading the article, but I’ve seen many cases where issues with food prices and food supply have been diagnosed as long term effects of food aid or cheap imported food. What can happen
12.
▲
by
swift
9y ago
It’s generally a bad and dangerous idea, especially for someone who is schizophrenic, but antipsychotics can have very serious side effects, and I think it’s painting with a brush that’s a bit too broad to suggest that someone would only st
13.
▲
by
swift
9y ago
People misunderstand this stuff in part because of the failure to make a distinction between a theory (which is often a mathematical description of a system, though this depends on the discipline) and an interpretation (which really is an i
14.
▲
by
swift
9y ago
I’d argue that you have to get pretty deep into experimental GHC language extensions to get into anything as weird as some of the SFINAE-based template metaprogramming tricks I’ve seen (and used, sadly) in C++.
15.
▲
by
swift
9y ago
It’s probably hard to see it this way when you’re starting out (and you may need a certain personality type as well =) but for me, programming in Haskell is a genuine pleasure because it’s so easy to express yourself in it . Things that re
16.
▲
by
swift
9y ago
This is genuinely good advice. I'm a bit surprised that so many commenters here are reacting to the second paragraph as if it described an extreme lifestyle that would inevitably lead to ruin, or as if you need to make a choice between
17.
▲
by
swift
9y ago
I will say this for C++: post C++11, it’s one of the few languages in widespread use to have an explicitly defined memory model. The people working on C++ definitely do care about concurrency and parallelism. I’d still choose Rust over C++
18.
▲
by
swift
9y ago
That's not accurate. I keep my iPhones for two years, and when I upgrade I give them to family members who have always gotten another 2-3 years of use out of them. (And Apple has continued to support them during that time with software
19.
▲
by
swift
9y ago
There are options other than "tough laws" for helping communities struggling with high rates of addiction. Your breakdown of this situation makes it sound like you think it doesn't matter what you do, because someone will cal
20.
▲
by
swift
9y ago
An even better question is "faster by what metric?". Once it has been running for a while and the JIT has done its work, it can definitely happen that a Java program will outperform an equivalent C++ program because of the JIT
21.
▲
by
swift
9y ago
Can you clarify what makes you say that the EPA is "so large that it is no longer effective"? Everything I've heard about the situation inside the EPA makes it sound more like they're desperately short on staff and fundi
22.
▲
by
swift
9y ago
I'm not 100% sure what's meant by "native" method in this context, but if you're programming for macOS/iOS, try Grand Central Dispatch. It's a very nice task parallelism library with some extremely smart d
23.
▲
by
swift
9y ago
macOS already does present a list of apps that are using a lot of energy if you click on the battery indicator. I thought that Windows had a similar feature, but I'm not sure.
24.
▲
by
swift
9y ago
This is true ideally, but there are several factors which make it not always true in practice. (1) Often your grammar admits inputs which are not in your language. Less often, it forbids some inputs which are actually valid. This is usually
25.
▲
by
swift
9y ago
This is a problem for a lot of languages, unfortunately, and it breaks the clean separation between syntax and semantics that we're hoping for when we write a formal grammar. I've had some success in the past with using GLR or ano
26.
▲
by
swift
9y ago
The question of shared state vs. message passing is orthogonal to processes vs. threads. Both techniques can be and are commonly used in both situations.
27.
▲
by
swift
9y ago
Sometimes a monotree is the only way. If your business model revolves around an open source core with some proprietary add-ons for paying customers, it's often not possible to merge those codebases into a single repo.
28.
▲
by
swift
9y ago
I use my Bluetooth earbuds and headphones to listen to music and podcasts on my phone, my tablet, and my laptop, and to connect to my TV to watch movies or play games late at night when my roommate is sleeping. I use them at the gym, where
29.
▲
by
swift
9y ago
I second this. I've been using Bluetooth headphones and earbuds for years and I was shocked at how well the AirPods worked. Zero dropouts. If you're into higher-end headphones, I can heartily recommend the B&W P7 Wireless. Fan
30.
▲
by
swift
9y ago
The feature I'd be most interested in here is the integration with git, but I don't see an example on the site that demonstrates that. If the author is reading this, could you please add one? (Or maybe point it out, if I'm ju
More ›