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

Do you have any example code? It's plain to see that Zig's comptime is powerful enough for typeclasses, but it's not at all obvious that it'd be as ergonomic as Haskell's typeclasses.


I don't have any particular examples in hand, but the question you're asking is one that's tough to answer because the languages that might be as ergonomic as Haskell in that regard and are also low-level are significantly more complex than either Haskell or Zig, and so I don't think we have a good point of comparison (I think Zig is revolutionary). There is definitely a price to pay for being a high-control/low-level language, and it certainly requires that you spend some of your "complexity budget" on things that high-level languages like Haskell or Java don't have to. But I think Zig shows that you can be both low-level and reasonably "expressive" without also being so much more complex than most high-level languages.


Then I guess the obvious question is: has it worked well for those projects?


It obviously isn't as safe as Rust, but I think it works well enough for something like gamedev(where absolute safety isn't required).

For memory related issues I find it sufficient.

One aspect where it is probably not as good as Rust is for threading related issues, as it relies on inserting runtime checks which may or may not trigger depending on the number of threads attempting access.


> You lose soundness, but we don't have sound guarantees for functional correctness, anyway

This sounds like "we can't guarantee the most important thing, so it's unclear whether it's useful to guarantee this other thing," but that's a bizarre statement, so am I misinterpreting?


It means that there's a complex tradeoff between making sound guarantees and providing correctness in other ways, a tradeoff that all languages make anyway, each finding its own preferred sweet spot, and that we don't know if, say, Rust's sweet spot yields better correctness than Zig's.


His point also misses the fact that Apple obviously denies you the ability to self-distribute.


Excellent, but why enshrine the ability to do this in law only for sufficiently wealthy media companies? Seems a bit ridiculous, doesn't it?


As opposed to only sufficiently wealthy American technology companies...


Well yes, Facebook has an obvious right to moderate their own platform. News Corp, on the other hand, does not own the Fox News Facebook page.


I'd say News Corp (Fox News, Sky News, NY Post, etc.) ranks pretty high on the list of damaging companies, and this law was clearly written to benefit them.


I'm sorry, but funding media giants is obviously not a good reason to extort search giants. What is the nuance that I am missing?


You're not missing anything and there's no nuance.

It's a blatant moneygrab for fossils from a government they have by the balls.

The classified ads have dried up and they're out of ideas.


Google gets content and advertising revenue, journalists are not getting enough return for their work. It's not sustainable.


I don't think Google News displays ads on result pages, just the title + thumbnail. Why should they pay for displaying these links when they don't earn anything on them, it doesn't make business sense.

As for news discovered by regular search, I think that is different because the user has to input specific search keywords and restrict to recent results. The difference is about intention and recurring visits.

The situation seems similar to the Google Books fiasco, where we didn't end up with a searchable online library of out of print books. Lots of arguments were raised back then as now, but the bottom line was that everyone tried to do good for himself and we all got less - the prisoner's dilemma in action.


> it doesn't make business sense

If it didn't make business sense then Google wouldn't be showing them in the first place. It plainly does make business sense. Google shouldn't be afraid to pay for what it uses.


If the news sites do not want the traffic, they are perfectly free to use their robots.txt to stop google from scraping.

The want to have their cake and eat it too, plus get paid for the privilege.

Having said this, I have no sympathy for Google either.


They aren't perfectly free to do it and that's the point. Read what the ACCC is doing and why it is doing it:

https://www.accc.gov.au/media-release/australian-news-media-...


Nothing in that link that I can see prevents the news businesses from excluding themselves from being scraped by google using robots.txt.

Well, nothing except for the fact that their own sites are not compelling enough for customers in order to be profitable, so they don't want to do it.


So you're saying the only problem is practical reality. Good insight.

What do you think this is all about? The ACCC is acting to address the practical realities of the situation. That's what the ACCC is there for.


I think this is about crony capitalism. The old mates want to have their cake and eat it too and get paid as well, and their mates are making that happen.

Just the fact that the ABC and SBS are excluded says it all really. This is clearly not about journalism.


To quote the ACCC chair: “We note that 88 smaller media businesses teamed up to submit a joint submission as part of the process of developing the code. Under our plan, these businesses could again work together to negotiate with the platforms over fair payment for their content.”'

You really are failing to understand this. You must try harder.


OK, and ABC/SBS?

I understand and it's ridiculous. Just because your business is not profitable shouldn't mean another business should be forced to subsidise it. Unless you have mates that can make laws, that is.


If they believe that Google should compensate them then they can already demand that Google stop linking their pages, and then bargain with Google the ordinary way. Why is it fair or necessary to add extra laws here?


There's no "demand" necessary. Just configuration.

Lots of interesting things on Robots meta tag:

https://developers.google.com/search/reference/robots_meta_t...


It's not "belief", it's financial reality.


The journalists doing good work would be almost entirely excluded by this law.

This money would go to an organisation which largely peddles outrage and division.


> This money would go to an organisation which largely peddles outrage and division.

Frankly that's Google, Facebook, and Twitter. They are aimed at maximising engagement and outrage does that for them. They keep feeding people what they think they want to see and the further down the rabbit hole they go the weirder and more extreme it gets.


> Frankly that's Google, Facebook, and Twitter. They are aimed at maximising engagement and outrage does that for them.

Please, do a google image search for "daily telegraph cover", and then give me your description of the Murdoch news media.


Maybe news isn't sustainable in the long run anyway. Independent journalists (who CAN survive on 50k-150k in ad revenue) are the future.


How? They'll be crushed like bugs by the first lawsuit that comes along.

The only way they'd survive is by producing fawning, uncritical reports, like almost every interview done with movie stars.


As long as the courts are fair, there's no problem here.


Lawsuits cost money. There's nothing but problems here. You're asking them to go bankrupt.


I strongly doubt that "most" mathematicians are Platonists.


Good point, but bad example. Fourier developed his transform for the sole purpose of attacking the heat equation, which is definitely quite a physically important problem!


> trans people, might reasonably be described as people "whose attempts to make friends are odd and typically unsuccessful".

This is a thoroughly bizarre assertion. Why can trans people be described thus?


This is also not the case in many real life examples of trans friends who readily are outgoing and make friends I see and know. I believe they were using that quote from something above that was mentioned as being a quote from autism spectrum disorder, and they were using it as a parallel. It's also not the case in many autistic friends, though. I know many close friends on the spectrum that are loud, outgoing and make friends very readily.


They usually don't quite look like their gender of choice landing them in somewhat of an uncanny valley. Me or you will have an instinctive negative reaction to them which will then have to be overcome. Of course that doesn't mean they never make any friends. But that is not what is being said. What is being said is they will have more unsuccessful attempts than the average person.


> They usually don't quite look like their gender of choice

This is confirmation bias. You notice people who don't look like you think they should look. You then think those people are trans, and when you check a few it turns out they are trans. You've confirmed your bias, and now you think it's true.

What you haven't taken into account is all the people who don't fit this pattern: athletic black women who were born female and identify as female but who are assumed to be transwomen (see all the conspiracy theories around Michelle Obama or the Williams sisters), or the people who do pass well that you're just not aware of.


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

Search: