frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Best Current Practice for OAuth 2.0 Security

https://datatracker.ietf.org/doc/html/rfc9700
1•mooreds•2m ago•0 comments

Humans have remote touch 'seventh sense' like sandpipers

https://techxplore.com/news/2025-11-humans-remote-seventh-sandpipers.html
1•wjSgoWPm5bWAhXB•3m ago•0 comments

I've found the secret to a happy relationship: an 'airport divorce'

https://www.thetimes.com/travel/inspiration/comment-inspiration/airport-divorce-travel-trend-huw-...
1•mooreds•3m ago•0 comments

Thoughts by a non-economist on AI and economics

https://windowsontheory.org/2025/11/04/thoughts-by-a-non-economist-on-ai-and-economics/
1•mooreds•3m ago•0 comments

Whitespace Esolang

https://esolangs.org/wiki/Whitespace
1•OptionX•3m ago•0 comments

'Nestflix': Peregrine falcon livestream has Australians glued to their screens

https://www.bbc.co.uk/news/articles/c5yp6m8y764o
1•dijksterhuis•7m ago•0 comments

EventChains: Sequential workflows with LIFO middleware composition

https://eventchains.dev/
1•gamedevmadeeasy•7m ago•0 comments

Rubydoc.info – 521: Web server is down

https://www.rubydoc.info/gems/google_maps_geocoder
1•ioblomov•11m ago•0 comments

AI Progress and Recommendations

https://openai.com/index/ai-progress-and-recommendations/
2•gmays•12m ago•0 comments

I want you to understand Chicago

https://aphyr.com/posts
10•Fraterkes•14m ago•0 comments

Scientists Identify Potential Climate Solutions in "Grassy Trees"

https://www.nyu.edu/about/news-publications/news/2025/october/scientists-identify-potential-clima...
3•geox•16m ago•0 comments

At the Root: An Anti-Racist Ethical Source License for Open Source Projects

https://attheroot.dev
4•Kerrick•20m ago•2 comments

Galaxy Brain Resistance

https://vitalik.eth.limo/general/2025/11/07/galaxybrain.html
1•plastic3169•20m ago•0 comments

MD-11 Boeing Converted Freighter [pdf]

https://www.boeing.com/content/dam/boeing/boeingdotcom/company/about_bca/startup/pdf/freighters/M...
1•naves•27m ago•0 comments

I Skied Down Mount Everest (world first, no oxygen) [video]

https://www.youtube.com/watch?v=cjZvFY6__qw
1•charlieirish•29m ago•0 comments

Non-recursively deleting a binary tree in constant space

https://devblogs.microsoft.com/oldnewthing/20251106-00/?p=111771
2•ibobev•32m ago•0 comments

Show HN: Simple Instagram Unfollowers Tracker

https://socialutils.io/unfollowers-tracker
2•CodeCrusader•33m ago•0 comments

Race to secure 2025 rice crop heats up, lifting prices

https://www.japantimes.co.jp/news/2025/10/17/japan/new-rice-crop-competition/
1•PaulHoule•33m ago•0 comments

Game-of-Robots / Restarts on every double-click

https://hexbot-genesis.netlify.app/
1•cpuXguy•35m ago•0 comments

Stronghold of the Dwarven Lords.BAS

https://basic-code.bearblog.dev/stronghold-of-the-dwarven-lords/
2•ibobev•35m ago•0 comments

RotMG Map Seeds

https://www.redblobgames.com/blog/2025-11-07-rotmg-seeds/
1•ibobev•36m ago•0 comments

James Watson, who co-discovered DNA's double helix shape, dies at age 97

https://apnews.com/article/james-watson-obituary-dna-double-helix-nobel-c1f6d589f2d0d4751859168f9...
3•colinprince•37m ago•0 comments

Duolingo stock plunges as company prioritizes user growth

https://www.cnbc.com/2025/11/06/duolingo-duol-stock-q3-earnings-2025.html
2•amelius•43m ago•0 comments

DC-10 engine separation American Airlines Flight 191

https://www.faa.gov/lessons_learned/transport_airplane/accidents/N110AA
2•qwertyuiop_•44m ago•1 comments

BYD Pulls Ahead of Tesla in UK, Closes Sales Gap in Germany

https://www.bloomberg.com/news/articles/2025-11-05/byd-pulls-ahead-of-tesla-in-uk-with-sales-incr...
4•breve•44m ago•0 comments

Coding Assistant wiped my Mac

https://www.decisional.com/blog/coding-assistant-wiped-our-mac
3•groovetandon•45m ago•3 comments

Async live-stream platform: How to remove elements from embeded web-page

https://livechannels.pages.dev/
1•LandOfMightDev•45m ago•1 comments

How I Built a Kindle Reading Stats Dashboard That Works

https://aacevski.com/blog/kindle-reading-stats-dashboard/
1•andrejsshell•47m ago•0 comments

Speed or Felixibility? For Beginner Creators Only

2•fkhasiyev•49m ago•0 comments

Show HN: Zettelkasten Interactive – 60KB knowledge tool for ADHD brains

https://zettelkasten.site/
2•SlaWisni73•51m ago•1 comments
Open in hackernews

Marko – A declarative, HTML‑based language that makes building web apps fun

https://markojs.com/
76•ulrischa•2h ago

Comments

shevy-java•1h ago

    <p>Today is ${new Date().toDateString()}</p>
    <p>Random number: ${Math.floor(Math.random() * 100)}</p>
Sorry, I don't like it. I already disliked that immensely in PHP. Not going back to that spaghetti mesh-up.

The intro is also incorrect in my opinion. It writes a "HTML-based language", but this is more a hybrid of HTML and JavaScript. Why is JavaScript not mentioned in the intro?

cyanydeez•1h ago
Don't blame Marko for this type of abomination. This is basically fancy react JSX.

ITS just bizzare people want to parse JavaScript at the same instance they're parsing html.

Also, LLMs are going to destroy any new framework. Someone's gonna need to figure out how to integrate these things into new tools. LLMs suck but it'll be much worse if they freeze innovations cause they're too expensive to chase the new hotness.

Kiro•1h ago
You two are complaining about different things. Note how the parent mentioned PHP as the reference.
jamal-kumar•11m ago
I think the grand takeaway is that people like to complain
whatshisface•1h ago
LLMs can make use of documentation and example code.
cyanydeez•28m ago
Yes. I understand second order context pollution.
croes•11m ago
But because of LLMs there will be less example code
cco•1h ago
How would you prefer to write those examples?
ethmarks•1h ago
Personally, I'd either just put the content in an ID-ed span and have a script to replace the content. Another, perhaps better, way is to use Alpine.JS which excels at this kind of stuff.
ghurtado•1h ago
Either solution sounds more verbose than the example and require writing code in at least one other source file
nine_k•40m ago
But that separation is sometimes the point. A designer tweaking the looks has no chance to break the computation logic, and an engineer tweaking the computation part won't disrupt the design by mistake.

Terseness is good for code golf [1]. I disliked CoffeeScript after writing it for some time: nearly any typo can result in another syntactically correct program which, of course, does not what you wanted the original program to do, or fails the compilation in an unrelated place. A practical language has safety margins, aka some redundancy.

[1]: https://en.wikipedia.org/wiki/Code_golf#Dedicated_golfing_la...

sorrythanks•23m ago
Unless the designer removes the id, or the engineer introduces new output that is not styled.
ethmarks•8m ago
But they're both framework-agnostic.

This snippet works with any framework and any build step.

  <script src="//unpkg.com/alpinejs" defer></script>
  <div x-data="{ 
    today: new Date().toDateString(),
    randomNum: Math.floor(Math.random() \* 100)
  }">
    <p>Today is <span x-text="today"></span></p>
    <p>Random number: <span x-text="randomNum"></span></p>
  </div>
Marko's syntax is definitely easier to understand and less verbose, but in order to use it you have to commit to the Marko framework. If you're willing to choose a framework solely for its JS-in-HTML capabilities, there are much better choices (like SvelteKit).
ggregoire•53m ago
> I'd either just put the content in an ID-ed span and have a script to replace the content

And so your script is broken when someone else in your team (or maybe even yourself) renames or removes the ID and forgets to search in the whole project if some piece of code depends on this ID. JSX fixed all that mess 10+ years ago.

didibus•55m ago
Separate templating from computing I'd assume.
Lerc•26m ago
Is there any significant difference between that and

    element.innerHTML=`
      <p>Today is ${new Date().toDateString()}</p>
      <p>Random number: ${Math.floor(Math.random() * 100)}</p>
    `
(ideally .setHTML() when it's available)

At that point I think I'd have a skeleton html file that fetches a JS that does it all. I'd take JS with embedded HTML over HTML with embedded JS.

marcelr•17m ago
this comment really proves that people do not consider the information presented to them

marko is not comparable to php

it is much closer to svelte

i used to sympathize with people complaining about js-fatigue, but at some point its a skill issue

croisillon•1h ago
previously:

January 2023, 125 comments - https://news.ycombinator.com/item?id=34591625

August 2017, 150 comments - https://news.ycombinator.com/item?id=15057371

February 2015, 10 comments - https://news.ycombinator.com/item?id=9065447

hyperhello•1h ago
The problem when taking several languages and mixing them together this way is that the result is supposed to have brevity, but it’s actually unreadable. You need slash to mean something grammatical, colon has to say something, you can speak “open brace” in a way that anticipates; @ means “at”. This code looks more like a compression scheme.
gdotdesign•52m ago
I think I managed to combine three languages in one with Mint (https://mint-lang.com/):

1. There is HTML (tags) with, but without interpolation {...} you can put string literals, variables and everything that type checks as HTML children.

2. There is CSS but only in style blocks where you can interpolate any expression you need and put in if and case expressions too.

3. There is the normal Mint code you write the logic in (this would be the JavaScript in other languages).

Here is an example which have all three: https://mint-lang.com/examples/7guis/flight-booker

The challenge was to make it seamless enough that so it doesn't look like that we tried to mash languages up, but to make them form a different language that is consistent and simple at the same time.

sorrythanks•26m ago
almost all code looks like nonsense when you're unfamiliar with it
AbstractH24•1h ago
There’s some joke here about how that’s in contrast to Marketo…
celsius1414•56m ago
There’s a Marko Pollo joke, too, but I’m too chicken to say it.
nielsbot•1h ago
Maybe off topic, but I’d kill for a HAML for TSX or Svelte!

Working with HAML really did make building web app fun IMO. I can’t be the only one!

braebo•50m ago
Svelte already has a Pug preprocessor :)

I used to use it years ago. So much nicer than HTML.

promiseofbeans•59m ago
This is actually quite cool - JS inside HTML, rather than the more React-y HTML inside JS.

As I understand it, Ryan Carniato was a major part of this project, and later went on to lead SolidJS, which goes back to the React style HTML in JS. Has he spoken at all about why he went back to that templating style?

sorrythanks•25m ago
Yes. Mostly because:

• JSX is well understood by a lot of developers • support is already built in to text editors • it is understood by typescript