frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Ante, a coding agent in a single binary that runs offline

https://github.com/AntigmaLabs/ante
72•ubermon•2h ago•50 comments

Show HN: Voice driven murder mystery, Interview AI suspects with your voice

https://www.whodunnitai.com/
182•MrRowTheBoat•15h ago•76 comments

Show HN: A tiny LLM running at 21,000 tok/s on a $250 FPGA (Live Demo)

https://www.mikeayles.com/blog/on-chip-llm-kv260/
17•mikeayles•6h ago•8 comments

Show HN: PicPocket – Dedicated 'chats' for photo-sharing (share to organize)

https://picpocket.io/
2•amr_shawky•2h ago•0 comments

Show HN: Design Engineering, as a Service

https://designshippers.com/?0
6•krm01•5h ago•1 comments

Show HN: Neolabs.fyi – 100 new AI labs by research area, valuation, and more

https://neolabs.fyi/
4•polyphilz•4h ago•2 comments

Show HN: Bio Tools – install drug design tools easily

https://github.com/David-OConnor/bio_tools
2•the__alchemist•2h ago•0 comments

Show HN: Slashscore, an open developer graph built from public GitHub activity

https://www.slashscore.com
2•wingravity•2h ago•2 comments

Show HN: PrivateRedact – Offline PII redaction with a local LLM, no cloud

https://github.com/monjurulkarim/privateredact
3•rajubuet24•2h ago•0 comments

Show HN: My math notes for anything that touches ML

https://github.com/publications-and-more/pub
3•Amlal•2h ago•0 comments

Show HN: Vocal Slice – cut audio by selecting text, fully on-device

https://vocalslice.com/
2•terranivium•2h ago•1 comments

Show HN: 100% native Swift harness (NOT Electron)

https://github.com/Lore-Hex/QuillCode
6•ljlolel•5h ago•2 comments

Show HN: filebouncer - npm package for detecting suspicious uploads.

https://github.com/Ramzi-Abidi/filebouncer
2•ramzi-abidi•3h ago•0 comments

Show HN: Self-hosted universal context layer for Mac

https://github.com/Rafaelpta/litepipe
2•rafaepta•3h ago•0 comments

Show HN: TickClip – An AI shopping agent that can recommend not buying

https://www.tickclip.ai/
2•tickclip•3h ago•1 comments

Show HN: A Project Oberon System version running on RISC-V instead of RISC-5

https://github.com/rochus-keller/OberonSystem/tree/op2-rv32
118•Rochus•1d ago•19 comments

Show HN: I made alchemical-cosmological PCB badges

https://github.com/KaiPereira/Alchemical-Cosmological-Badges
20•kaipereira•5d ago•3 comments

Show HN: GlyPho – Generate editable SVG families from prompts

https://www.glypho.app/
4•shenyi•4h ago•0 comments

Show HN: DocSift convert a PDF once, give the model only the passages it needs

https://github.com/anishmoncivarghese/docsift
2•anishvarghese•4h ago•0 comments

Show HN: Watching browser fingerprinting calls via Chromium's Blink layer

https://kameleo.io/blog/this-is-the-closest-well-ever-get-to-reverse-engineering-anti-bots
8•brnbs•9h ago•0 comments

Show HN: Hawser – sign, notarize, DMG, auto-update and license a Mac app

https://hawserkit.com/
2•yaveez•5h ago•0 comments

Show HN: Edgi – Letterboxd or Strava for your brain

https://app.edgi.tv/
4•jshapiro•5h ago•0 comments

Show HN: gbx -- manage a fleet of git repos with a TUI

https://github.com/deemson/gbx
2•deemson•5h ago•0 comments

Show HN: Online Speedometer

https://kmspeedometer.com/
3•artiomyak•5h ago•0 comments

Show HN: Synchrium, a synchronized timer where remote peers meet at zero

https://synchrium.com/
2•areich•5h ago•0 comments

Show HN: ui.camera – Product photography for software

https://ui.camera
3•alexakten•6h ago•1 comments

Show HN: Untagged – Find the cloud spend missing required allocation tags

https://untagged.pages.dev/
2•normanbrigg•6h ago•0 comments

Show HN: Working on gym weight progress calculator

https://gymcalc.no/
2•xtremi•7h ago•0 comments

Show HN: Mangudai – Agentless attack surface manager for small tech teams

https://github.com/oktaybilge1/mangudai-overview
2•mangudai•7h ago•0 comments

Show HN: Game Engine with its own IDE and scripting language

2•am-gm•7h ago•0 comments
Open in hackernews

Show HN: val – An arbitrary precision calculator language

https://github.com/terror/val
34•crap•1y ago
Wrote this to learn more about the `chumsky` parser combinator library, rustyline, and the `ariadne` error reporting crate.

Such a nice DX combo for writing new languages.

Still a work in progress, but I thought I'd share :)

Comments

jasonjmcghee•1y ago
Hey nice! We have similar interests. I built something similar, but with way less calculator functionality than you did :D

But the main idea I was going for was real-time JIT evaluation with rendered errors (specifically learning / using cranelift JIT) - less to do with the calculator aspect.

I ended up choosing miette for errors.

https://github.com/jasonjmcghee/basic-treesitter-cranelift-j...

occamatl•1y ago
> sqrt(10^100)-1 -> 100000000000000000000000000000000000000000000000000

Not what I expected.

emaro•1y ago
In the readme it says it uses double precision for numbers. Also not quite whet I expected from 'arbitrary precision'.
chriswarbo•1y ago
Hmm, yeah. It cites `bc` as prior art, which is quite widely used; but another interesting arbitrary-precision calculator is spigot https://www.chiark.greenend.org.uk/~sgtatham/spigot/spigot.h...
mananaysiempre•1y ago
Also the AOSP calculator, of course[1,2,3].

[1] https://chadnauseam.com/coding/random/calculator-app

[2] https://dl.acm.org/doi/10.1145/2911981

[3] https://dl.acm.org/doi/10.1145/3385412.3386037

emmelaich•1y ago
Ivy does big numbers (not arbitrary) but does rationals too. It's an APL subset.

    0.1 + 0.2
    3/10
https://github.com/robpike/ivy
lttlrck•1y ago
the addition of astro_float fixed this.
primitivesuave•1y ago
The UI is awesome, amazing work! However, arbitrary precision implies that there is no fixed upper limit to the number of digits - simple tests like `0.1 + 0.2 == 0.3` and `2^53 == 2^53 + 1` (both produce "false") indicates you're still using IEEE 754 double precision floats.

If "arbitrary precision" is not as important to you as "high precision", a 128 bit decimal has enough precision for 99% of real-world applications.

crap•1y ago
Thanks for checking it out! Should have been more clear that this is actively being worked on. This is ultimately the goal, and I'm currently working on integrating `astro_float` as the base for numbers.
primitivesuave•1y ago
That is awesome, I look forward to following the project and hopefully contributing! I became a better Rust programmer from reading your code :)
jdhwosnhw•1y ago
Do you mean, the first returns false and the second returns true?
primitivesuave•1y ago
Ah you're right, thank you for pointing it out!

In the previous version of this comment (where I was still reading it incorrectly) I added a fun fact, that the significand of an IEEE 754 double-precision float is only allocated 52 bits, but the "hidden bit trick" provides an extra bit of precision when the normalized form starts with 1.

I_complete_me•1y ago
I wish you well. And I clicked you a star on github. Keep up the good work.
crap•1y ago
Thanks to everyone who gave feedback!

Arbitrary precision is now supported in 0.3.0 after integrating the `astro_float` (https://docs.rs/astro-float/latest/astro_float/index.html) `BigFloat` type as the base for numbers in the language.

Still working out the kinks, but its live so give it a try!

lttlrck•1y ago
This is cool.

It love to have to base conversion functions, even if it's print only. Does that fit at all?

lttlrck•1y ago
and different input base notations, 0x, o, 0b etc
crap•1y ago
This definitely fits, base conversion is on the roadmap!
librasteve•1y ago
very cool, welcome to the small club of CLI calculator authors! before I read this I knew of frink and crag (https://raku.land/zef:librasteve/App::Crag since you ask)

Crag is built on raku so has some neat tricks up its sleeve - you can see Crag of the Day to see some in action...

  crag '0.1+0.2=0.2'   #True (arbitrary precision)
  crag '₃₆123.45'      #3F.G77777  (base 36)
  crag 'e ** (i * π) =~= -1'   #True  (math symbols, complex numbers)
  crag '0rMCMXLIV'     #1944 (Roman numerals)
  crag '^<௪௨ mph>'     #42mph  (Unicode and units)
hee hee
johannesrexx•1y ago
Rewrite it like so

> 1/10 + 2/10 == 3/10 true >