hacker_news_feed | Технологии

Telegram-канал hacker_news_feed - Hacker News

24205

Top stories from https://news.ycombinator.com (with 100+ score) Contribute to the development here: https://github.com/phil-r/hackernewsbot Also check https://t.me/designer_news Contacts: @philr

Подписаться на канал

Hacker News

Web apps in a single, portable, self-updating, vanilla HTML file (🔥 Score: 152+ in 2 hours)

Link: https://readhacker.news/s/6zTJ9
Comments: https://readhacker.news/c/6zTJ9

Читать полностью…

Hacker News

Google admits anti-competitive conduct involving Google Search in Australia (Score: 151+ in 4 hours)

Link: https://readhacker.news/s/6zTpt
Comments: https://readhacker.news/c/6zTpt

Читать полностью…

Hacker News

Faster Index I/O with NVMe SSDs (Score: 150+ in 16 hours)

Link: https://readhacker.news/s/6zRBS
Comments: https://readhacker.news/c/6zRBS

Читать полностью…

Hacker News

Review of Anti-Aging Drugs (Score: 151+ in 11 hours)

Link: https://readhacker.news/s/6zScV
Comments: https://readhacker.news/c/6zScV

Читать полностью…

Hacker News

A privacy VPN you can verify (❄️ Score: 150+ in 2 days)

Link: https://readhacker.news/s/6zMne
Comments: https://readhacker.news/c/6zMne

Читать полностью…

Hacker News

Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea (Score: 153+ in 7 hours)

Link: https://readhacker.news/c/6zS2M

Hi HN! I got so frustrated with modern WYSIWYG editors that I started to play around with building my own.
The problem I had was simple: I wanted a low-tech way to type styled text, but I didn't want to load a complex 500KB library, especially if I was going to initialize it dozens of times on the same page.
Markdown in a plain <textarea> was the best alternative to a full WYSIWYG, but its main drawback is how ugly it looks without any formatting. I can handle it, but my clients certainly can't.
I went down the ContentEditable rabbit hole for a few years, but always came to realize others had solved it better than I ever could.
I kept coming back to this problem: why can't I have a simple, performant, beautiful markdown editor? The best solution I ever saw was Ghost's split-screen editor: markdown on the left, preview on the right, with synchronized scrolling.
Then, about a year ago, an idea popped into my head: what if we layered a preview pane behind a <textarea>? If we aligned them perfectly, then even though you were only editing plain text, it would look and feel like you were editing rich text!
Of course, there would be downsides: you'd have to use a monospace font, all content would have to have the same font size, and all the markdown markup would have to be displayed in the final preview.
But those were tradeoffs I could live with.
Anyways, version 1 didn't go so well... it turns out it's harder to keep a textarea and a rendered preview in alignment than I thought. Here's what I discovered:
- Lists were hard to align - bullet points threw off character alignment. Solved with HTML entities (• for bullets) that maintain monospace width
- Not all monospace fonts are truly monospace - bold and italic text can have different widths even in "monospace" fonts, breaking the perfect overlay
- Embedding was a nightmare - any inherited CSS from parent pages (margin, padding, line-height) would shift alignment. Even a 1px shift completely broke the illusion
The solution was obsessive normalization:

    // The entire trick: a transparent textarea over a preview div
layerElements(textarea, preview)
applyIdenticalSpacing(textarea, preview)

// Make textarea invisible but keep the cursor
textarea.style.background = 'transparent'
textarea.style.color = 'transparent'
textarea.style.caretColor = 'black'

// Keep them in sync
textarea.addEventListener('input', () => {
preview.innerHTML = parseMarkdown(textarea.value)
syncScroll(textarea, preview)
})

A week ago I started playing with version 2 and discovered GitHub's <markdown-toolbar> element, which handles markdown formatting in a plain <textarea> really well.
That experiment turned into OverType (https://overtype.dev), which I'm showing to you today -- it's a rich markdown editor that's really just a <textarea>. The key insight was that once you solve the alignment challenges, you get everything native textareas provide for free: undo/redo, mobile keyboard, accessibility, and native performance.
So far it works surprisingly well across browsers and mobile. I get performant rich text editing in one small package (45KB total). It's kind of a dumb idea, but it works! I'm planning to use it in all my projects and I'd like to keep it simple and minimal.
I would love it if you would kick the tires and let me know what you think of it. Happy editing!
---
Demo & docs: https://overtype.dev
GitHub: https://github.com/panphora/overtype

Читать полностью…

Hacker News

The Enterprise Experience (Score: 157+ in 6 hours)

Link: https://readhacker.news/s/6zS8E
Comments: https://readhacker.news/c/6zS8E

Читать полностью…

Hacker News

Electricity prices are climbing more than twice as fast as inflation (Score: 152+ in 8 hours)

Link: https://readhacker.news/s/6zRJV
Comments: https://readhacker.news/c/6zRJV

Читать полностью…

Hacker News

AI doesn't lighten the burden of mastery (Score: 150+ in 4 hours)

Link: https://readhacker.news/s/6zSag
Comments: https://readhacker.news/c/6zSag

Читать полностью…

Hacker News

ArchiveTeam has finished archiving all goo.gl short links (🔥 Score: 151+ in 3 hours)

Link: https://readhacker.news/s/6zSgb
Comments: https://readhacker.news/c/6zSgb

Читать полностью…

Hacker News

Eliminating JavaScript cold starts on AWS Lambda (Score: 150+ in 1 day)

Link: https://readhacker.news/s/6zNKr
Comments: https://readhacker.news/c/6zNKr

Читать полностью…

Hacker News

SuperSight: A graphical enhancement mod for Brøderbund's "Stunts" (❄️ Score: 150+ in 4 days)

Link: https://readhacker.news/s/6zBGS
Comments: https://readhacker.news/c/6zBGS

Читать полностью…

Hacker News

LL3M: Large Language 3D Modelers (🔥 Score: 155+ in 3 hours)

Link: https://readhacker.news/s/6zRrS
Comments: https://readhacker.news/c/6zRrS

Читать полностью…

Hacker News

Visualising how close random GUIDs come to being the same (Score: 151+ in 15 hours)

Link: https://readhacker.news/s/6zQiH
Comments: https://readhacker.news/c/6zQiH

Читать полностью…

Hacker News

Node.js can now execute TypeScript files (Score: 151+ in 4 hours)

Link: https://readhacker.news/s/6zQWe
Comments: https://readhacker.news/c/6zQWe

Читать полностью…

Hacker News

Why Nim? (Score: 150+ in 19 hours)

Link: https://readhacker.news/s/6zRCH
Comments: https://readhacker.news/c/6zRCH

Читать полностью…

Hacker News

Show HN: Doxx – Terminal .docx viewer inspired by Glow (Score: 151+ in 11 hours)

Link: https://readhacker.news/s/6zSzR
Comments: https://readhacker.news/c/6zSzR

I got tired of open file.docx → wait 8 seconds → close Word just to read a document, so I built a terminal-native Word viewer!
What it does:
* View `.docx` files directly in your terminal with (mostly) proper formatting
* Tables actually look like tables (with Unicode borders!)
* Nested lists work correctly with indentation
* Full-text search with highlighting
* Copy content straight to clipboard with `c`
* Export to markdown/CSV/JSON
Why I made this:
Working on servers over SSH, I constantly hit Word docs I needed to check quickly. The existing solutions I'm aware of either strip all formatting (docx2txt) or require GUI apps. Wanted something that felt as polished as [glow](https://github.com/charmbracelet/glow) but for Word documents.
The good stuff:
* 50ms startup vs Word's 8+ seconds
* Works over SSH (obviously)
* Preserves document structure and formatting
* Smart table alignment based on data types
* Interactive outline view for long docs
Built with Rust + ratatui and heavily inspired by Charm's [glow](https://github.com/charmbracelet/glow) package for viewing Markdown in the CLI (built in Go)!

    # Install
cargo install --git https://github.com/bgreenwell/doxx

# Use
doxx quarterly-report.docx

Still early but handles most Word docs I throw at it. Always wanted a proper Word viewer in my terminal toolkit alongside `bat`, `glow`, and friends. Let me know what you think!

Читать полностью…

Hacker News

Who does your assistant serve? (Score: 150+ in 13 hours)

Link: https://readhacker.news/s/6zRSJ
Comments: https://readhacker.news/c/6zRSJ

Читать полностью…

Hacker News

Dyna – Logic Programming for Machine Learning (Score: 156+ in 1 day)

Link: https://readhacker.news/s/6zQ3q
Comments: https://readhacker.news/c/6zQ3q

Читать полностью…

Hacker News

HN Search isn't ingesting new data since Friday (Score: 150+ in 4 hours)

Link: https://readhacker.news/s/6zSC8
Comments: https://readhacker.news/c/6zSC8

Читать полностью…

Hacker News

Derivatives, Gradients, Jacobians and Hessians (Score: 151+ in 8 hours)

Link: https://readhacker.news/s/6zRHc
Comments: https://readhacker.news/c/6zRHc

Читать полностью…

Hacker News

Show HN: NextDNS Adds "Bypass Age Verification" (Score: 154+ in 8 hours)

Link: https://readhacker.news/c/6zRL2

We just shipped a new feature in NextDNS: Bypass Age Verification.
More and more sites (especially adult ones) are now forcing users to upload IDs or selfies to continue. We think that’s a terrible idea: handing over government documents to random sites is a huge privacy risk.
This new setting workarounds those verification flows via DNS tricks. It’s available today to all users, including free accounts.
We’re curious how the HN community feels about this. Is it the right way to protect privacy online, or will it just provoke regulators to push harder?
https://nextdns.io

Читать полностью…

Hacker News

IQ Tests Results for AI (Score: 150+ in 12 hours)

Link: https://readhacker.news/s/6zRfq
Comments: https://readhacker.news/c/6zRfq

Читать полностью…

Hacker News

When Did AI Take Over Hacker News? (🔥 Score: 150+ in 1 hour)

Link: https://readhacker.news/s/6zSyT
Comments: https://readhacker.news/c/6zSyT

Читать полностью…

Hacker News

Claudia – Desktop companion for Claude code (🔥 Score: 155+ in 3 hours)

Link: https://readhacker.news/s/6zSdz
Comments: https://readhacker.news/c/6zSdz

Читать полностью…

Hacker News

Wan – Open-source alternative to VEO 3 (Score: 152+ in 14 hours)

Link: https://readhacker.news/s/6zQRx
Comments: https://readhacker.news/c/6zQRx

Читать полностью…

Hacker News

Lessons learned from building a sync-engine and reactivity system with SQLite (Score: 150+ in 10 hours)

Link: https://readhacker.news/s/6zR28
Comments: https://readhacker.news/c/6zR28

Читать полностью…

Hacker News

Why LinkedIn Rewards Mediocrity (Score: 151+ in 5 hours)

Link: https://readhacker.news/s/6zReL
Comments: https://readhacker.news/c/6zReL

Читать полностью…

Hacker News

The Raft Consensus Algorithm (2015) (❄️ Score: 150+ in 4 days)

Link: https://readhacker.news/s/6zBdk
Comments: https://readhacker.news/c/6zBdk

Читать полностью…

Hacker News

Dev Compass – Programming Philosophy Quiz (Score: 151+ in 11 hours)

Link: https://readhacker.news/s/6zQie
Comments: https://readhacker.news/c/6zQie

Читать полностью…
Подписаться на канал