frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Trump Big Beautiful Bill Ends $7,500 EV Credit by September

https://gearmusk.com/2025/07/04/trump-big-beautiful-bill-ends/
3•maxmarrfun•3m ago•0 comments

Why Cloudflare wants AI companies to pay for content

https://techcrunch.com/podcast/why-cloudflare-wants-ai-companies-to-pay-for-content/
1•codexy•3m ago•0 comments

Neanderthals operated "fat [extraction] factory" 125,000 years ago

https://archaeologymag.com/2025/07/neanderthals-operated-fat-factory-125000-years-ago/
2•hilux•10m ago•0 comments

Nvidia briefly on track to become most valuable company

https://www.reuters.com/business/nvidia-set-become-worlds-most-valuable-company-history-2025-07-03/
1•geox•13m ago•0 comments

Artificial Intelligence in China

https://merics.org/de/china-tech-observatory/artificial-intelligence
1•walterbell•18m ago•0 comments

Show HN: SWC Plugin SVG as React Component

https://github.com/joaoneto/swc-plugin-svg-component
1•joaoneto•24m ago•0 comments

Our Fullstack Architecture: Eta, Htmx, and Lit

https://www.lorenstew.art/blog/eta-htmx-lit-stack
3•Bogdanp•26m ago•0 comments

RP2350-PiZero Pairs RP2350 Microcontroller with Raspberry Pi Zero Form Factor

https://linuxgizmos.com/rp2350-pizero-pairs-rp2350-microcontroller-with-raspberry-pi-zero-form-factor/
3•chsum•31m ago•0 comments

GrapheneOS warns ICEBlock users of court order risk

https://bsky.app/profile/grapheneos.org/post/3lswujex4e22w
6•diggan•37m ago•0 comments

Making a computer out of marbles and wood [video]

https://www.youtube.com/watch?v=jnB7S8_Pfqo
3•m-hodges•40m ago•0 comments

Senescence-resistant human cells counter aging in primates

https://www.cell.com/cell/abstract/S0092-8674(25)00571-9
2•vagabund•43m ago•1 comments

Design of Q8bot: A Miniature, Low-Cost, Dynamic Quadruped Built with Zero Wires [video]

https://www.youtube.com/watch?v=0dk7lYoITQw
1•surprisetalk•53m ago•0 comments

Ask HN: How are startups dealing with key talent poaching?

1•dbreunig•55m ago•0 comments

The Garden Not at Home

https://laurabrekelmans.substack.com/p/the-garden-not-at-home
1•azeirah•1h ago•0 comments

Why Duolingo switched from Hearts to a battery

https://blog.duolingo.com/duolingo-energy/
1•soheilpro•1h ago•0 comments

Supreme Court Agrees to Hear Cases Involving Transgender Athletes

https://www.nytimes.com/2025/07/03/us/politics/supreme-court-transgender-athletes.html
2•whack•1h ago•0 comments

Kubernetes is a symptom, not a solution

https://andreafortuna.org/2025/06/20/unpopular-opinion-kubernetes-is-a-symptom-not-a-solution
22•gsky•1h ago•7 comments

EPA puts 139 employees on leave after they sign a 'declaration of dissent'

https://www.theguardian.com/us-news/2025/jul/03/epa-employees-administrative-leave
14•mitchbob•1h ago•0 comments

Anarchy in the Database: A Survey and Evaluation of DBMS Extensibility [pdf]

https://www.vldb.org/pvldb/vol18/p1962-kim.pdf
2•matt_d•1h ago•1 comments

Octopuses' 8 Arms Sample Microbiomes

https://www.nytimes.com/2025/06/17/science/octopus-arms-microbiome.html
2•bookofjoe•1h ago•1 comments

The Georgist Roots of American Libertarianism

https://asteriskmag.com/issues/10/the-georgist-roots-of-american-libertarianism
2•mercutio2•1h ago•2 comments

The Air Force fitness test may soon increase with 2-mile runs, twice-a-year

https://taskandpurpose.com/news/new-air-force-fitness-test/
1•PaulHoule•1h ago•1 comments

Radio observations shed more light on the properties of Pandora's Cluster

https://phys.org/news/2025-07-radio-properties-pandora-cluster.html
2•wglb•1h ago•1 comments

Ask HN: Is there a business for extracting US tech talent?

5•Arubis•1h ago•1 comments

Claude-Gemini Bridge

https://github.com/tkaufmann/claude-gemini-bridge
3•handfuloflight•1h ago•0 comments

SimpleX network: new experience of connecting with people

https://simplex.chat/blog/20250703-simplex-network-protocol-extension-for-securely-connecting-people.html
1•Sami_Lehtinen•1h ago•0 comments

The risk of using generative AI when applying for jobs

https://www.abc.net.au/news/2025-07-04/risk-using-generative-ai-chatgpt-applying-for-jobs/105467950
5•billybuckwheat•1h ago•0 comments

Show HN: A one-stop resource dedicated to helping Python developers

https://pythonlink.xyz/en
1•python_cat•1h ago•1 comments

How to Build a Third Place on Focusmate

https://parconley.com/focusmate/
1•sebg•1h ago•0 comments

Generative AI could help make construction sites safer

https://www.technologyreview.com/2025/07/02/1119607/how-generative-ai-could-help-make-construction-sites-safer/
1•gnabgib•1h ago•0 comments
Open in hackernews

Adding keyword parameters to Tcl procs

https://world-playground-deceit.net/blog/2025/04/adding-keyword-parameters-to-tcl-procs.html
58•BoingBoomTschak•2mo ago

Comments

andrewshadura•2mo ago
Tcl is the shell done right. Simple, logical, consistent.
BoingBoomTschak•2mo ago
Well, it's certainly much better, especially now that we have dicts to replace arrays. But the specter of https://wiki.tcl-lang.org/page/exec+ampersand+problem (cf https://core.tcl-lang.org/tips/doc/trunk/tip/424.md) still looms.
grewsome•2mo ago
Tcl does appear to be a command language done right, I don't think there is a better one. As it was designed after bash etc, I guess the Tcl developers could see the inconsistencies there, which helped them do Tcl right.
IshKebab•2mo ago
Well... Yes and no. It's definitely better than most shells, but that's a very low bar. It's pretty awful compared to any "real" programming language, which is a problem because it's used in places where a real programming language would be much more appropriate.
grewsome•2mo ago
Tcl is a real programming language, but it depends on what you are doing with it. There are a lot of people who have never come into contact with command languages, and so there are plenty that look at it and have a negative response. For a lot of people though, Tcl is as easy to program in as Python or any other scripting language. It's a heck of a lot _easier_ to program in than a lot of so called real programming languages. I've found Ousterhout's dichotomy to be true, using two languages for a codebase is very efficient, but again, it'll depend on what you're doing.
IshKebab•2mo ago
It depends what you mean by easy. There are fewer features sure, but it's kind of like saying building a house with just a hand saw and a hammer is easy. Sure there are fewer tools to learn if you don't use CAD, power tools, laser levels, etc. But it's a bit dubious to say it's easier.
grewsome•2mo ago
Tcl doesn't have fewer features, it packs in a lot, probably because of its maturity, to a similar level as other mature scripting languages (OO, coroutines, event loop, slave interps, etc, etc). But it's poor when you want something to run quick, or if you want to carefully manage memory because you have a lot of data. Also there is no typing, and for large code bases that is detrimental. But by using two languages you can get the best of both worlds. But then you need to program competently in two languages, and that takes a surprising amount of experience, and the hand saw and hammer analogy isn't accurate in this case.
tracnar•2mo ago
I implemented something very similar a while ago, it's indeed too bad it's not built-in. I don't think you need such a "quasiquote" function, [list {*}$args] can escape a single command, and then it's a matter of joining multiple commands using a newline. IIRC that's how I did it.

I also had further fun with wrapping "proc" by implementing a "pyproc" which called out to Python while looking like a normal Tcl proc.

BoingBoomTschak•2mo ago
The problem is mainly the square brackets that force one to go through strings, in my experience. Can't build something like "set foo [cmd $bar]" purely by using [list ...] shenanigans, since list will quote stuff you don't want quoted.
tracnar•2mo ago
True, I believe I mostly worked around that limitation by splitting off quoted from unquoted code into separate commands. So in your example "[cmd $bar]" would be in a separate unquoted command, probably putting it in a temporary variable, which can cause problems as it's hard to have a private scope when doing metaprogramming. You can also use "[list]" in the middle of code, but it gets more error prone, for example "set foo \[[list cmd \$bar]\]"

For sure there is a lack of proper "code as data" constructs in Tcl, like you would find in Lisp.

BoingBoomTschak•2mo ago
Actually, you can see the "backslash hell" version here if you want to estimate the clarity gains: https://git.sr.ht/~q3cpma/tcl-misc/tree/f613898c3dcfa3ca958a...
blacksqr•2mo ago
The OpenACS web server toolkit has a lot of useful Tcl utilities, including the ad_proc procedure, which wraps proc and allows adding of switches, inline docs, and more.

I think it would be very useful to turn ad_proc into a built-in command and incorporate it into TCL.

https://nstcl.sourceforge.net/docs/nstcl-core/ad_proc.html

shawn_w•2mo ago
Personally I'm a fan of TEPAM from tcllib, which does much the same (and tcllib is available through many OS's package managers making it more readily available)

https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tclli...

grewsome•2mo ago
For incorporating into Tcl I'd prefer something simpler that would also work with existing procs. Building on {*}, maybe {@} could work (to skip over arguments to a specified argument}. e.g. when calling a function: someFunc someVal anotherVal {@}someArgName yetAnotherVal
jrapdx3•2mo ago
As a search of the Tcl wiki shows, attempts to add named-argument capability to the Tcl proc command have been around for several years.

My own nxproc extension is more comprehensive. (See wiki [0].)

The extension enables named arguments, regular positional arguments, and 'rest' arguments, nxargs and nxunknown. Nxproc also provides (optional) type-checking of procedure arguments. (Types: string, number, bool and enumerated. Enums are lists of values restricting what the arg can contain.)

Nxproc supports TclOO with nxcontructor and nxmethod commands -- same feature set as "plain" nxproc. Also provides case-insensitive '-ci' variants, and runtime display of named-argument default/actual values and types.

Nxproc is a Tcl C extension. Bundle has Windows, Linux binaries. Compiles easily on other platforms.

[0] https://wiki.tcl-lang.org/page/nxproc

sigzero•2mo ago
That looks very nice!
RicoElectrico•2mo ago
Synopsys tools (either CosmosScope or Custom Wave view) do it by the way of names following values. Like:

    measureFoo $signal threshold 0.9 edge last