frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The rules behing Rust functions

https://blog.cuongle.dev/p/the-hidden-rules-behind-rust-functions
35•gidellav•3d ago

Comments

meindnoch•36m ago
Always nice to see Rust slowly converging to C++ levels of complexity.
kibwen•32m ago
What? All of this stuff has been in the language since 2014 at least. If you want stack-allocated closures which can safely close over references, this is the machinery you need. Rust's implementation is the state of the art.
ozgrakkurt•30m ago
Really can’t see how it could be made simpler. Function pointer can’t be a closure because it means something different. You can pass pointers different functions without having multiple versions of the function you are calling. Closures have a unique type and they require you to use generics.
kccqzy•23m ago
But the difference between a closure and a function pointer is essential complexity, not accidental complexity.

If a language were to provide only closures and not function pointers, it would not be low level enough to interface with C code and C ABI. That's definitely not what Rust needs.

fulafel•11m ago
Nah, lots of higher level languages interface with C.
xondono•15m ago
This has been in Rust since before the 1.0 release.

Also, you can’t converge to a diverging number, for Rust to get close to C++’s level of complexity, the C++ WG would have to stop with their garbage.

fulafel•4m ago
Would be interesting to see a comparison with GCC's C closures[1].

[1] https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html

Models of European Metro Stations

http://stations.albertguillaumes.cat/
374•tcumulus•6h ago•89 comments

macOS Tahoe is certified Unix 03 [pdf]

https://www.opengroup.org/openbrand/certificates/1223p.pdf
49•john_alan•2h ago•10 comments

Fukushima Insects Tested for Cognition

https://news.cnrs.fr/articles/fukushima-insects-tested-for-cognition
34•nis0s•2h ago•15 comments

CorentinJ: Real-Time Voice Cloning

https://github.com/CorentinJ/Real-Time-Voice-Cloning
20•redbell•1h ago•3 comments

Geedge and MESA leak: Analyzing the great firewall’s largest document leak

https://gfw.report/blog/geedge_and_mesa_leak/en/
239•yourapostasy•20h ago•47 comments

A single, 'naked' black hole confounds theories of the young cosmos

https://www.quantamagazine.org/a-single-naked-black-hole-rewrites-the-history-of-the-universe-202...
86•pykello•8h ago•23 comments

Refurb Weekend: Silicon Graphics Indigo² Impact 10000

http://oldvcr.blogspot.com/2025/09/refurb-weekend-silicon-graphics-indigo.html
91•Bogdanp•7h ago•25 comments

The rules behing Rust functions

https://blog.cuongle.dev/p/the-hidden-rules-behind-rust-functions
35•gidellav•3d ago•7 comments

SpikingBrain 7B – More efficient than classic LLMs

https://github.com/BICLab/SpikingBrain-7B
59•somethingsome•7h ago•16 comments

Show HN: A store that generates products from anything you type in search

https://anycrap.shop/
936•kafked•1d ago•284 comments

Pass: Unix Password Manager

https://www.passwordstore.org/
233•Bogdanp•13h ago•121 comments

Dynamic Bird Migration Map

https://explorer.audubon.org/explore/species?sidebar=expand
39•skadamat•3d ago•8 comments

Two Slice, a font that's only 2px tall

https://joefatula.com/twoslice.html
312•JdeBP•13h ago•78 comments

The PC was never a true 'IBMer'

https://thechipletter.substack.com/p/the-pc-was-never-a-true-ibmer
17•klelatti•4h ago•5 comments

Repetitive negative thinking is associated with cognitive function decline

https://bmcpsychiatry.biomedcentral.com/articles/10.1186/s12888-025-06815-2
30•redbell•1h ago•3 comments

Gemini (2023)

https://geminiquickst.art/
21•jhanschoo•4h ago•7 comments

Will AI be the basis of many future industrial fortunes, or a net loser?

https://joincolossus.com/article/ai-will-not-make-you-rich/
154•saucymew•15h ago•191 comments

Cat Aquariums

https://cataquariums.com/
43•robin_reala•6h ago•13 comments

The Socratic Journal Method: A Simple Journaling Method That Works

https://mindthenerd.com/the-socratic-journal-method-a-simple-journaling-method-that-actually-works/
108•surprisetalk•3d ago•47 comments

The unreasonable effectiveness of modern sort algorithms

https://github.com/Voultapher/sort-research-rs/blob/main/writeup/unreasonable/text.md
54•Voultapher•3d ago•16 comments

AMD’s RDNA4 GPU architecture

https://chipsandcheese.com/p/amds-rdna4-gpu-architecture-at-hot
131•rbanffy•16h ago•21 comments

How the restoration of ancient Babylon is drawing tourists back to Iraq

https://www.theartnewspaper.com/2025/09/12/how-the-restoration-of-ancient-babylon-is-helping-to-d...
74•leoh•12h ago•36 comments

Recreating the US/* time zone situation

https://rachelbythebay.com/w/2025/09/12/tz/
98•move-on-by•21h ago•65 comments

A Trick for Backpropagation of Linear Transformations

https://tripplyons.com/blog/backprop-trick
33•tripplyons•2d ago•1 comments

The case against social media is stronger than you think

https://arachnemag.substack.com/p/the-case-against-social-media-is
273•ingve•18h ago•225 comments

Myocardial infarction may be an infectious disease

https://www.tuni.fi/en/news/myocardial-infarction-may-be-infectious-disease
445•DaveZale•15h ago•153 comments

486Tang – 486 on a credit-card-sized FPGA board

https://nand2mario.github.io/posts/2025/486tang_486_on_a_credit_card_size_fpga_board/
188•bitbrewer•22h ago•50 comments

RIP pthread_cancel

https://eissing.org/icing/posts/rip_pthread_cancel/
209•robin_reala•19h ago•90 comments

An Inline Cache Isn't Just a Cache

https://www.mgaudet.ca/technical/2018/6/5/an-inline-cache-isnt-just-a-cache
3•achierius•3d ago•1 comments

My first impressions of Gleam

https://mtlynch.io/notes/gleam-first-impressions/
210•AlexeyBrin•1d ago•70 comments