frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Fundamentals of garbage collection (2023)

https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/fundamentals
43•b-man•3d ago

Comments

pjmlp•2h ago
On the context of .NET runtime, as missing from the title.
BlimpSpike•1h ago
Kindof unrelated to the article, but I was recently wondering if it would be possible to detect and deny pointer cycles in a language in an efficient way, so that you could then use simple reference counting instead of full-blown garbage collection.

It probably wouldn't be usable for a general-purpose programming language, but for a special-purpose scripting language I could see it making the language implementation easier.

louthy•1h ago
On any one object you can just follow the references to see if you get back to the same object. Not super efficient as you’d have to do it for each reference as it is set.

But if it was a simple scripting language and you needed that constraint, it’s relativity easy to implement.

creata•40m ago
You can just forbid cyclic data types - e.g., require every struct type to only reference types that have already been defined. I can't think of any languages that do this.

Another solution is to make things immutable (like Erlang), or "as-if" immutable (like Koka), which guarantees that data can only point to things that have already been defined, preventing cycles.* Erlang uses this to simplify generational collection - because old data can't point to young data, it doesn't need a card table or anything like that.

I think it's perfectly possible to have a general purpose language without cycles: you can just use integer indices into an array instead of pointers if you want cyclic data structures. This is common in Rust, when people want to avoid the overhead of reference counting, but don't want to use unsafe code.

* A hidden assumption here is that the language is eagerly evaluated. There are languages like Haskell that have immutability and cyclic data structures.

asplake•16m ago
Even with cyclic relationships between types, immutability makes cycles within instances difficult (without laziness anyway). A syntax tree would be a good example.
creata•13m ago
Yes, either is sufficient, I think.

OpenAI’s Windsurf deal is off, and Windsurf’s CEO is going to Google

https://www.theverge.com/openai/705999/google-windsurf-ceo-openai
629•rcchen•10h ago•392 comments

Bad Actors Are Grooming LLMs to Produce Falsehoods

https://americansunlight.substack.com/cp/168074209
11•nsoonhui•41m ago•0 comments

ETH Zurich and EPFL to release a LLM developed on public infrastructure

https://ethz.ch/en/news-and-events/eth-news/news/2025/07/a-language-model-built-for-the-public-good.html
427•andy99•13h ago•63 comments

Faking a JPEG

https://www.ty-penguin.org.uk/~auj/blog/2025/03/25/fake-jpeg/
203•todsacerdoti•9h ago•43 comments

Preliminary report into Air India crash released

https://www.bbc.co.uk/news/live/cx20p2x9093t
229•cjr•11h ago•394 comments

Replication of Quantum Factorisation Records with an 8-bit Home Computer [pdf]

https://eprint.iacr.org/2025/1237.pdf
68•sebgan•6h ago•7 comments

Malware Found in Official GravityForms Plugin Indicating Supply Chain Breach

https://patchstack.com/articles/critical-malware-found-in-gravityforms-official-plugin-site/
5•taubek•1h ago•0 comments

Fundamentals of garbage collection (2023)

https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/fundamentals
43•b-man•3d ago•6 comments

jank is C++

https://jank-lang.org/blog/2025-07-11-jank-is-cpp/
236•Jeaye•14h ago•76 comments

Leveraging Elixir's hot code loading capabilities to modularize a monolithic app

https://lucassifoni.info/blog/leveraging-hot-code-loading-for-fun-and-profit/
50•ronxjansen•4d ago•2 comments

Upgrading an M4 Pro Mac mini's storage for half the price

https://www.jeffgeerling.com/blog/2025/upgrading-m4-pro-mac-minis-storage-half-price
343•speckx•18h ago•214 comments

Dict Unpacking in Python

https://github.com/asottile/dict-unpacking-at-home
80•_ZeD_•3d ago•23 comments

HDD Clicker generates HDD clicking sounds, based on HDD Led activity

https://www.serdashop.com/HDDClicker
69•starkparker•7h ago•35 comments

Reverse proxy deep dive

https://medium.com/@mitendra_mahto/cross-posted-from-https-startwithawhy-com-reverseproxy-2024-01-15-reverseproxy-deep-dive-html-c3443dc3e0e5
17•miggy•4d ago•5 comments

Andrew Ng: Building Faster with AI [video]

https://www.youtube.com/watch?v=RNJCfif1dPY
209•sandslash•1d ago•52 comments

Bill Atkinson's psychedelic user interface

https://patternproject.substack.com/p/from-the-mac-to-the-mystical-bill
409•cainxinth•21h ago•217 comments

A software conference that advocates for quality

https://bettersoftwareconference.com/
81•leoncaet•10h ago•52 comments

Psilocybin shows promise as anti-aging therapy

https://neurosciencenews.com/psilocybin-longevity-aging-29425/
42•joak•3h ago•5 comments

Show HN: I built a toy music controller for my 5yo with a coding agent

https://github.com/jeffmccune/sonoserve
8•JeffMcCune•3d ago•1 comments

The Ghost of Muriel Spark

https://www.newstatesman.com/culture/books/2025/06/the-ghost-of-muriel-spark
3•Caiero•2d ago•0 comments

Repaste Your MacBook

https://christianselig.com/2025/07/repaste-macbook/
208•speckx•19h ago•98 comments

Rice rebels: Research reveals grain's brewing benefits

https://phys.org/news/2025-06-rice-rebels-reveals-grain-brewing.html
9•PaulHoule•2d ago•4 comments

What is Incus?

https://linuxcontainers.org/incus/
8•motorest•3h ago•1 comments

Monorail – Turn CSS animations into interactive SVG graphs

https://muffinman.io/monorail/
68•stanko•3d ago•7 comments

OpenAI delays launch of open-weight model

https://twitter.com/sama/status/1943837550369812814
111•martinald•7h ago•77 comments

Astronomers race to study interstellar interloper

https://www.science.org/content/article/astronomers-race-study-interstellar-interloper
118•bikenaga•16h ago•56 comments

Activeloop (YC S18) Is Hiring AI Search and Python Back End Engineers(Onsite,MV)

https://careers.activeloop.ai/
1•davidbuniat•11h ago

Introduction to Digital Filters (2024)

https://ccrma.stanford.edu/~jos/filters/
55•ofalkaed•12h ago•12 comments

AWS Free Tier Changes on July 15, 2025

https://freetier.co/articles/aws-free-tier-changes-july-15-2025
30•coop182•8h ago•28 comments

Measuring power network frequency using junk you have in your closet

https://halcy.de/blog/2025/02/09/measuring-power-network-frequency-using-junk-you-have-in-your-closet/
27•zdw•9h ago•6 comments