frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•9mo ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•9mo ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•9mo ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•9mo ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•9mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: Secure Extension: Chat with ChatGPT and Other LLMs Simultaneously

https://multiai-chat.com/
1•rmrf100•1m ago•0 comments

The South Korean Anduril

https://theventures.substack.com/p/bone-ai-forging-the-flame-of-the
1•jefflee0127•9m ago•0 comments

Show HN: Capture context. Give your agent the full picture

https://github.com/semihcihan/ContextBrief
1•semihcihan•10m ago•0 comments

Life's a bi*ch CHUM, and then you die

https://himanshusinghbisht.substack.com/p/lifes-a-bich-chum-and-then-you-die
1•gilfoyle_7•10m ago•0 comments

US threatens Anthropic with deadline in dispute on AI safeguards

https://www.bbc.co.uk/news/articles/cjrq1vwe73po
1•louthy•11m ago•0 comments

Show HN: APA citation generator that explains missing metadata

https://apacitationgenerator.online
1•visiohex•13m ago•0 comments

Show HN: Clawned.io Crowdsource public security scanner for OpenClaw skills

https://clawned.io
1•jensec•13m ago•2 comments

Codex was able to port KittenTTS to JavaScript

https://github.com/jokkebk/KittenTTS-JS
2•jokkebk•16m ago•1 comments

Show HN: Play Fun Clicker Game Online

https://funclicker.app/
1•tomstig•16m ago•0 comments

Grep, Sed, Awk – The Unix Text Processing Trinity

https://grep-sed-awk.com/
1•m4c-pl•17m ago•1 comments

Is it possible to build it

1•Petersevcik•18m ago•0 comments

There is no reason Canadian Tire company should have any of my data

https://infosec.exchange/@pgl/116131275583976424
3•jalict•18m ago•0 comments

Age Requirements for Apps in Brazil, Australia, Singapore, Utah, and Louisiana

https://developer.apple.com/news/?id=f5zj08ey
1•petethomas•18m ago•0 comments

Visualizing DeepSpeed Ulysses: Sequence Parallelism for 1M Context Windows

https://darshanfofadiya.com/part3.html
1•DARSHANFOFADIYA•19m ago•1 comments

Show HN: Tspages – static site hosting platform for your Tailscale network

https://github.com/Radiergummi/tspages
1•9dev•21m ago•0 comments

From Noise to Image – interactive guide to diffusion

https://lighthousesoftware.co.uk/projects/from-noise-to-image/
1•simedw•21m ago•0 comments

React Native Is Not Dead – Nor Is It Deprecated

https://devdong.textlanes.com/en/react-native-is-dead-support-discontinued-not-at-all
1•textlanes33•22m ago•1 comments

Teams Or Not? Check what the domain/email is using

https://teamsornot.com/
1•punnerud•27m ago•0 comments

Show HN: AccIQ; A local-first financial IDE for sovereign founders

https://acciqmvp3.vercel.app/
1•auvira_systems•27m ago•0 comments

Discussion: Why Testing Is Important

1•simile_test•29m ago•1 comments

"AI raises the quality of tuning beyond what most of us can achieve manually"

https://medium.com/@fransverduynlunel/a-fluitje-van-een-cent-my-experience-automating-postgres-pe...
1•lnardi•30m ago•1 comments

Show HN: PolyTell-AI Chrome extension that shows Polymarket odds as you browse

https://polytell.app/
1•fengyiqicoder•31m ago•0 comments

Show HN: NetWatch – A Wireshark-style network analyzer TUI built in Rust

https://github.com/matthart1983/netwatch
1•matthart1983•31m ago•0 comments

Show HN: Treekei – File Tree with Line Counts in CLI

https://github.com/zihao-liu-qs/treekei
1•zihao-liu-qs•32m ago•1 comments

Free AI Headshot Generator – Professional Photos from Any Selfie

https://aiheadshotgenerator.online/
1•jewelryde•36m ago•0 comments

LM Link: Use local models on remote devices, powered by Tailscale

https://tailscale.com/blog/lm-link-remote-llm-access
1•calcifer•37m ago•0 comments

$2.1B in Epstein Financial Records. Here's Every Name the Money Touched

https://randallscott25-star.github.io/epstein-forensic-finance/narratives/19_grand_opus_narrative...
3•sschueller•41m ago•0 comments

Anthropic/Pentagon: allow AI to be used for all military purposes by this Friday

https://www.nbcnews.com/tech/security/anthropic-pentagon-us-military-can-use-ai-missile-defense-h...
1•ollieza•41m ago•1 comments

Show HN: Rewrite Text – On-Device AI Writing Tool for iOS

https://apps.apple.com/us/app/rewrite-text-ai-writing-tool/id6758913519
1•8mobile•45m ago•0 comments

Investment Supply Chain Analysis

https://investment.binhph.am
1•davedx•50m ago•1 comments