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

Go does not give you control. Much of the speed comes from choosing the right algorithms - including memory management. In Go you have GC, you don't have that in Zig.

Linked lists are a lot less slow if you use Arena allocation around your hotspots and make sure to allocate space for as many as you thing you need, since they will be carved out of a contigious block of memory and will stay in CPU cache.

Golang also requires you to write more code, as it lags Zigs try operator.


Control. Its a replacement for C that is a lot nicer to work with.

So basically if you either need your Python code to interact with a native library or need more control in a specific place, you can use Zig there.

Zig makes it trivial to control which part of the code e.g allocate memory, so you can guarantee that your rendering or audio loop has no stuttering.

I would still keep Python as the main driver for where dev speed is the most important part.


You can discard a variable like so:

_ = variable_to_discard

I am sorta unsure why Zig doesn't have multiline comments, but its also not at version 1 yet, so that will likely come, along with better IDE support.


That is interesting. And it's an AI critique I haven't heard before.

Would you consider it possible that the way non-intentionally placed items break the game immersion for you is because they appear in such a way that you think you can interact with them in a certain way, but you can't?

Like if there's an extra door in the house you're trying to get into, but that door doesn't really open, then in your mind that breaks the integrity of the game's systems. If so, I think the LLM response is that there are no more doors that don't open and that the world can be generated as needed.

No computer can handle the complexity of even a small town. But it would be possible, at least in the future, to generate the part of the world you interact with, which would heighten the emersion.


its reasonably the same "reversion to the mean" or "not x, but y"

the intentionally placed tree serves no particular in-game job mechanically. it instead points your eyes to the right place when you walk up the path, and then again when you look back down from above.

when they're saying everything is intentionally placed, they mean everything, whether it looks important or not. It's all directed to a cohesive core


So you want a human going 'oh stick a tree anywhere, it doesn't matter' rather than having that done procedurally whether by a simple algorithm or an ML model?

It sounds like you might be assuming intent where there is little. I suspect if you didn't know a poem was written by an LLM you might ascribe purpose and intent to many aspects - rather like a high-school English language teacher.


Project Gutenberg is awesome and amazing.

I was visting the ruins of a monestary the other day, and one of the texts listed that it had a library of 320ish books.

I chucked because I have almost 200 books in my personal Kindle library, but I was wrong. I actually have 75000+ books, thanks to Project Gutenberg.

I just haven't downloaded them all yet.


Its meaningless to decriminalize using it, since it does not give big benefit of replacing narco terrorists producers with pure, controlled stuff from legal pharma companies.

The world is obviously better of without drugs, but given that is not going to happen, the question to decide is: is the world better of with drugs from legal pharmacutical companies, or (somewhat) restricted access to drugs through an illegal system?

Decrimininalizing drug use is the worst of both worlds: you get more drug access, but it still happens through the illegal system and benefits narco terrorists.

If you don't want to put drug users in jail (you cannot reasonably fine homeless people), you can offer drug courts and diversionary programs.

You need the federal government to do what it did with Marijuana (which is still federally illegal), to be able to try the other choice.


> The world is obviously better of without drugs,

You slip such a confident assertion in there seemingly without justification. Do you think (for example) that the world would be better off without alcohol? I certainly don't. Everything has downsides; that doesn't on its own justify eliminating it. It's analogous to the adage that the most secure computer is the one encased in a block of cement so as to render it entirely unusable.


I believe the world would be better of without alcohol for consumption, yes.

The only real benefits are not being the one outside the group, and the downsides include liver damage, social damage, massively higher risk for falling, drunk driving,...

More to the point, alcohol would never be permitted if it was invented today. Marijuana might.


You left out the most important benefit IMO. People enjoy the effects it has. Instead you're making out like it serves no purpose.

> More to the point, alcohol would never be permitted if it was invented today. Marijuana might.

Isn't that circular reasoning? We know the world is better off without it because it would run afoul of the current regulatory regime. It would run afoul of the current regulatory regime because we know the world is better off without things like that.


The world would unambiguously be better off without alcohol.


Tell me you have/had an alcoholic parent without telling me.


Nope, parents didn’t drink either; but you do you.

Perhaps you’d be able to cope with life better if you weren’t so dependant on self medicating with harmful intoxicants and threatened by any statements against them.


You 100% have a religious or moral compulsion to make these comments. Just a heads up, it comes off as really assholish, and I'm guessing it's making your social interactions worse, unless you live in a monestary.


How many died because they were cut of from the supply that they had been told by doctors did not cause addiction?


It certainly involved a lot of skill and expense, but how many more lives could be saved if the same money had been spent on improved traffic safety or NHS in general?


Probably not that many. You underestimate how expensive either of those things are.

We have obligations to provide services like this to the people living in our overseas territories, and you won’t find many people who’ll oppose that.


This is a classic. It occurs in two forms:

Wow, logistics to <remote place> are very expensive! We could spend that money better in the cities!

Wow, logistics in <city> is expensive! We could spend that money better in rural areas!

I read about a new road tunnel in London last year, a ten-digit price tag for about 1km of road IIRC. I'm 100% sure some people suggested that that money could have been better spent in rural areas.


We shouldn't be wasting a penny on colonies, this isn't the age of Napoleon anymore, get the English out of any country that isn't England.


You're suggesting that we should run a h3 grid over the world and assign everybody territory based on their haploytype?

Or is it only the 'English' who should be confined to certain geogrpahical parameters?

I'm English and live in another nation. I'm guessing me and my family should go 'home'?


The one thing you seem to be missing in your anticolonialist tirades is the fact that Tristan was uninhabited. It’s not like native peoples were displaced by the British colonists, right?


Many self-described anticolonialists forget that "self-determination" doesn't actually mean "people who live far away from the mainland should just fuck off and take care of themselves".

I've experienced it a bit as a Frenchman (and we have quite a few remote territories as well) who has lived on a couple of remote places (that were uninhabited as well before becoming French, but that shouldn't actually matter) and it's incredible how puny, short-sighted and simply egoistical some people can be.


The Netherlands has a few islands off the coast of Venezuela.

Very few of the people who live there want full independence lol.


I'm missing your point here


I'm saying that it is common for some people to advocate for jettisoning other parts of their country, especially if they are far away from where they live.


I did assume, and it makes a change, but Britain isn't in the middle of the Atlantic ocean.


No, you're correct Britain is a collection of islands in the northern hemisphere. This however is an island in the Atlantic ocean and is a British Overseas Territory.


> This however is an island in the Atlantic ocean and is a British Overseas Territory.

Britain is actually 3 countries under the control, largely, of England. Britain is the name they use for their empire loot.

They can call it what they like, if they dont mind giving up say, the south coast of Britain? No, then pot kettle my man.


What definition of empire are you running here? Is it the same definition you'd assign to Russia, India, China, Ethiopia, Iran, Myanmar?

Are the Andaman Islands, Kaliningrad, Midway, Ogaden, Balochistan, Xinjiang all loot under the auspices of empire?

What about the Galapagos? Svalbard? Falklands? All loot? Looted from who?

The word's thrown around a lot, it'd be nice to have a definition for once.


This guys comment history is absolutely wild! So utterly full of hate and ignorance. Amazing how often those two things go hand in hand.


I get mad upvotes so what does that tell you


Karma 98 after 8 months. What does that tell you?


Youve been riled by my carefree attitude


True, but this is military expenditure. So would you rather they spend this on an exercise or on actually saving people?


Yeah and helps demonstrate thst Tristan is strategically important


I think it's rich the English dont like foreigners given how many countries they think they're entitled to posses


Not sure what that means. What do you think the Uk claims to own?

Lots of european countries owned colonies until the post-war settlement.

And immigration to UK is at an all time high so not sure on other point?


Immigration to the UK is not at an all time high - both immigration and net migration are down pretty sharply:

https://www.bbc.co.uk/news/articles/c70989jrdweo


The general trend of the past years has increased immigration

https://www.gov.uk/government/publications/migration-advisor...

Its not an open border and the rules changed and now it is decreasing


As a someone living of foreign origin living in England my experience is that it is avery friendly and accepting place.


People respond to inspiring stories that show what is possible. Inevitably that means choices that might not match what a perfect allocation looks like.

Quiet, bland execution in government will get you voted out. Technocrats tend to come in after corruption, but they don’t usually last.


You'd rather we ignored our overseas compatriots?


Colonists you mean.


There's been repeated efforts to depopulate the Island by the UK government because it's expensive when you have to do drops like this - the people living there want to be there and prior to them getting there it was an uninhabited island.

I'm not really sure it meets the definition of a colony in the modern sense of the word.


Just to let you know: Colony: "a geographical area politically controlled by a distant country"

If it's verboten, then I'm guessing:

All Arabs back to the Arabian peninsula? "Latin Americans" back to Europe? The removal of 98% of the USA, Australia, etc? Malagasy back to Madagascar?

Sounds very genocidal... At least half of the world's population uprooted at least :/


And the English back to various corners of north west Europe and the Scots back to Scythia!


It's a small price to pay to keep political control. Probably not the entire motivation here, but generally countries like keeping their remote islands and settlements lived in because it represents a claim of the land by proxy.


If email matches owner of repo, pull now. If not verified, ban and restore later.


I've used this text autocomplete to autocomplete me a Python setup and to autocomplete automatically running it.

It that scrapes Hn it works. Ironically, it's why I'm here.


Why would you scrape HN when they offer free, generous API?


Autocomplete only 'knew' how to output a scraper...


Not true, I tried just now. Took 30 seconds of due diligence. You could have done this too. Do better.

The problem is they’ll do what you ask. And if you are the type of non-curious person who replies “ Autocomplete only 'knew' how to output a scraper...”, then you’ll tell it to make you a scraper instead of ask what your options are for getting HN data.


Okay, fair. I am using the API to scrape it.


Sounds like you didn't even know what your own tool was doing. This would be a prime example of why relying on autocomplete based tools makes you look like a fool.


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

Search: