Hacker Newsnew | past | comments | ask | show | jobs | submit | swift's commentslogin

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 expressions[1], and presumably they'll eventually be able to solve the problem the GP highlighted on top of those foundations.

[1]: https://github.com/microsoft/TypeScript/pull/55600


That's crazy, in the best way


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 Mac, but you can build FOSS apps and deploy them to your own iPhone, iPad, or Apple TV with a free developer account. You only need the paid license to distribute them to others.

> Finally I have a device that could replace things like a Wacom Tablet connected to your computer but that opportunity was missed.

There have been apps that support this for a while, but this is now a built-in iOS/macOS feature called "Sidecar".


I am afraid I also need to pay 100$ for the license to use certain features because if an app uses them I cannot even compile.

Recently I tried to compile blink[0] without a paid account and failed miserably.

Yes they also did a great job with sidecar which will only work if you at least own a recent mac. Also it does not work with the iPad Air 2 because they decided it is too old. It is the same story again: Apple softly forcing it's customers to upgrade - nice experience...

[0]: https://github.com/blinksh/blink


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 tools suddenly have to do a huge amount of work to reevaluate their internal model of all affected translation units. This can really result in an unpleasant and laggy editing experience, even on medium-sized projects. That's the kind of thing that modules can help with; I certainly wished fervently that they were already a thing when I used to work on C++ static analysis tools years 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 involved in is that this is sometimes just due to inertia. Taking full advantage of GLR's support for ambiguity requires reworking both your grammar and your early stages of semantic analysis, and even if people agree that the result might be nicer, nobody has the time or motivation to do all that work.


I've used GLR to parse C files in isolation - no lexer hack needed. More generally, at least historically, a lot of wizzy parsing tech has been closely held by companies selling their ability to deal with enterprise legacy code.


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.


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.


Yes, the same HD content is better as MP4 than GIF, but in the past a "typical" GIF loaded much faster than a typical video. It may even be true (any experts?) that there is an effective lower limit on video quality/framerate for MP4 that prevents it from being the super fast novelty juice that a low-quality GIF could be.


GIF is expensive to transport but cheap to decode. Compression that is in a sense more appropriate for video is the other way around. You may blow through a data cap (people still have these) quickly with animated GIFs, but at least you can put a hundred of them on a web page and have them all play. Eventually. If the downloads ever finish.


What he is talking about is that back when gifs and videos were both postage stamps pushed over modems, gifs won out.

But what changed was that people simply started ripping frames from HD videos, dumping them into gifs and plastering them all over social media.

End result was that the gifs ballooned in size because they now held many more images, and each images was much higher resolution.

What is more wacky is why gifs returned to fashion at all. They were dead for nearly a decade after people stopped doing their own web sites, and used gifs for things like animated "under construction" signs.


> What is more wacky is why gifs returned to fashion at all. They were dead for nearly a decade after people stopped doing their own web sites, and used gifs for things like animated "under construction" signs.

Same reason that H.264 won the web video standards war: mobile.

While mobile browsers can now embed videos reliably that wasn't always the case, and if there's one thing mobile users hate it's links opening other apps. GIFs allowed "video" content to be displayed inline easily in a mostly universal fashion.


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.


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.)


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.


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 is that local farmers go out of business or stop growing staple crops because prices collapse. When conditions change and the food aid stops or the price of imported food rises, there aren’t enough local farmers left to feed everyone. That will obviously cause food prices to go through the roof. It’s always something that has to be considered when planning aid to a country.


By all media accounts, most of the migrants are from some of the most productive demographics (by age). So migration might be slashing poor countries productive workforces.


Western countries talking about the benefits of immigration and multiculturalism - but when those immigrants are educated or skilled the west is robbing the poor countries of their only hope. This is why visas are better than residency/citizenship - the poor country person spends a few years in the advanced country then returns to the poor country with improved skills and knowledge.


What if a person doesn't want to live in their country of origin? Should we condemn them to live there anyway?


"Should we condemn them" - manipulatively dramatic language imho. Sometimes we have to step up and take on a burden we might prefer not to - it's done to improve a situation. You want the country's strong to abandon the country and its weak? Or do you want the whole population of every poor country to migrate, should they want?


I'm just considering a not unlikely scenario where a smart, capable person wants to get away from a country ruled by a corrupt or oppressive government. What if the majority of the people continually vote for such a government and this smart (strong, as you put it) person sees no chance of that changing in the foreseeable future, should that person be forced to live there even if they don't want to?


"forced to live there" is exactly the same manipulative language being used shamelessly here. You should really consider avoiding such use as it detracts from your argument.

On the other foot, should we be "forced" to accept people from corrupt nations? What is the test of character we give these incoming people to prevent the same "corruption-tolerant" people from ruining our own system of government?


"forced to live there" is exactly the same manipulative language being used shamelessly here. You should really consider avoiding such use as it detracts from your argument.

Fair enough. What would be another way to say that a person is denied living in any country other than the one of their origin?


The natural result of having borders? If you think people should be able to live wherever they want then where do you draw the line? Can I come live in your house and sleep in your bed whenever I want?


Did you just compare countries with houses ? Do people still use this tired argument ? The line is pretty obvious, it's called property of usage, you can't be denied what you actually need to live a decent life as defined by your society, but arbitrary borders based on the arbitrary, random fact that someone was born at a random place in earth is one of the worst criteria we can use


Instead of grasping on semantics of his language, why don't you try understanding the meaning? At the end of the day what you propose limits human freedom for a greater collective "good". Good luck with that.


One man's freedom is another man's slavery. If having private property and, by extension, state borders is an infringement on freedom then I think we have larger ideals to collide than this small one we started with.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: