frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

DateTimeFormats: Parse date time by examples (no EEEE VV zzz)

https://github.com/google/mug/wiki/Parsing-Date-Time-Should-Be-10x-Easier
1•byjy•4h ago

Comments

byjy•4h ago
DateTimeFormats is a Java library that lets you parse datetime strings by example — no need to remember pattern strings like "yyyy-MM-dd'T'HH:mm:ss.SSS zzz".

Parsing example string: "Tue, 2024-03-19 15:00:00 America/New_York"

→ inferred pattern: "E, yyyy-MM-dd HH:mm:ss VV"

Supports LocalDate, OffsetDateTime, ZonedDateTime, and Instant.

Ambiguity is deliberately rejected: "10/30/2025" is accepted, "01/02/2025" (ambiguous) is not.

Use parseToInstant(timeStr) or parseZonedDateTime(timeStr) for quick one-liner parsing.

For better performance in loops: use formatOf(...) once and reuse the formatter.

All inferred patterns are verified using DateTimeFormatter.parse() — no false positives. If it parses, it roundtrips.

Project: https://github.com/google/mug

Javadoc: https://google.github.io/mug/apidocs/com/google/mu/time/Date...

Feedback welcome — edge cases, weird formats, you name it.

Show HN: Vibe Coding Security Hook

https://github.com/edverma/vibe-code-security-hook
1•edverma2•1m ago•0 comments

We're missing (at least one) major paradigm for LLM learning

https://twitter.com/karpathy/status/1921368644069765486
1•mfiguiere•2m ago•0 comments

Apple is developing M6, M7, and a mysterious Sotra high-end chip

https://www.tomshardware.com/pc-components/cpus/apple-reportedly-readies-baltra-processors-for-ai-servers
1•behnamoh•4m ago•0 comments

Dotless Domains

https://lab.avl.la/dotless/
1•wibbily•7m ago•0 comments

What Physics Can Teach Us About AI (OpenAI's Dan Roberts)

https://www.sequoiacap.com/podcast/training-data-dan-roberts/
1•jxmorris12•14m ago•0 comments

Eden of 'California's Galapagos', where seals, grizzly bear-sized bass reign

https://www.theguardian.com/us-news/2025/may/10/channel-islands-conservation-oceans
1•pseudolus•14m ago•0 comments

Generating Physically Stable and Buildable Lego Designs from Text

https://arxiv.org/abs/2505.05469
1•aibrother•19m ago•0 comments

Show HN: Peersuite – Decentralized Team Communication

https://peersuite.space/
1•jerrimu•19m ago•0 comments

Acme Laboratories – Purveyors of fine freeware since 1972

https://www.acme.com/
2•nativeit•26m ago•0 comments

A Comparison between WebAssembly and RISC-V (2020)

https://medium.com/@losfair/a-comparison-between-webassembly-and-risc-v-e8fb9d37e6cc
1•apitman•28m ago•0 comments

GeoHack [MediaWiki tool for collecting/organizing geospatial data]

https://geohack.toolforge.org/
2•nativeit•32m ago•1 comments

What happens when a hegemon falls?

https://www.economist.com/finance-and-economics/2025/05/08/what-happens-when-a-hegemon-falls
2•Swizec•33m ago•0 comments

Copyright and Artificial Intelligence Part 3: Generative AI Training [pdf]

https://copyright.gov/ai/Copyright-and-Artificial-Intelligence-Part-3-Generative-AI-Training-Report-Pre-Publication-Version.pdf
2•Kye•34m ago•1 comments

Claude's System Prompt: Chatbots Are More Than Just Models

https://www.dbreunig.com/2025/05/07/claude-s-system-prompt-chatbots-are-more-than-just-models.html
2•misonic•36m ago•0 comments

My Month of Living Quince's Low-Cost Life of Luxury

https://www.nytimes.com/wirecutter/reviews/my-month-testing-quince-products/
1•xqcgrek2•41m ago•0 comments

Swift for WebAssembly [video]

https://www.youtube.com/watch?v=cJyNok8OAuE
1•TheWiggles•41m ago•0 comments

Is the Southern accent fixin' to disappear in parts of the US South?

https://apnews.com/article/migration-southern-accent-georgia-louisiana-north-carolina-1f8bfc59f869ccccaed6a87cdaa83ee8
1•pseudolus•44m ago•0 comments

EU abandons ePrivacy reform to boost AI competitiveness

https://techcrunch.com/2025/02/12/eu-abandons-eprivacy-reform-as-bloc-shifts-focus-to-competitiveness-and-fostering-data-access-for-ai/
4•bit_qntum•48m ago•0 comments

Senators probe Google–Anthropic, Microsoft–OpenAI deals over antitrust concerns

https://www.computerworld.com/article/3958091/senators-probe-google-anthropic-microsoft-openai-deals-over-antitrust-concerns.html
5•byte-bolter•48m ago•0 comments

Scoring the European Citizen in the AI Era

https://arxiv.org/abs/2505.02791
3•gray_amps•51m ago•0 comments

Rubicon: Precise Microarchitectural Attacks with Page-Granular Massaging

https://comsec.ethz.ch/research/dram/rubicon/
1•pabs3•52m ago•0 comments

The Little Kindgom (1982)

https://www.folklore.org/The_Little_Kingdom.html
2•kristianp•52m ago•0 comments

Ireland given two months to implement hate speech laws or face action from EU

https://www.thejournal.ie/ireland-given-two-months-to-start-implementing-hate-speech-laws-6697853-May2025/
2•like_any_other•54m ago•0 comments

This is Water by David Foster Wallace

https://fs.blog/david-foster-wallace-this-is-water/
2•alihm•57m ago•0 comments

Show HN: CXcompress v1.0.0-beta: fast lossless pre-procecssing text compressor

https://github.com/seccode/CXcompress
1•s3cfast•59m ago•0 comments

Wikipedia: Lamest Edit Wars

https://en.wikipedia.org/wiki/Wikipedia:Lamest_edit_wars
1•jsheard•1h ago•1 comments

Coding a Web Server in 25 Lines (2024) [video]

https://www.youtube.com/watch?v=7GBlCinu9yg
1•indigodaddy•1h ago•0 comments

Where does the ginseng in your tea come from? Graphic memoir explains the trade

https://www.npr.org/2025/05/09/nx-s1-5137011/ginseng-roots-craig-thompson-blankets
2•srameshc•1h ago•0 comments

Top 5 New Artificial Intelligence Innovations in 2025

https://wilnickmagazine.com/5-new-artificial-intelligence-in-2025/
1•Wilnick•1h ago•0 comments

Show HN: Swytch – A lightweight, alternative web framework in C#

https://github.com/Gwali-1/Swytch
1•Gwali-Gwali•1h ago•0 comments