News for hackers. Stuff that matters.

Andi

Re:Switch Lowering in GCC on Saturday October 31, 2026 @07:09AM (#50314912)
I remember having implemented similar things in JavaScript (by generating code), for immutable Maps and Sets - no significant performance gain in modern engines. For regular expressions of complex unicode ranges, the speedup was around 2x!
Re:Apple Reference Image: A New Approach for Verified Photography on Thursday September 17, 2026 @06:04PM (#49747274)
That's the issue: Instead of trusting your neighbour or a photo journalist's integrity (and if this direct trust is missing, who else should you trust?), you trust a trillion dollar US company. Actor injection.
Re:Filing the Corners Off MacBooks on Sunday April 12, 2026 @04:45PM (#47744277)
I don't like it. I would just attach a part of a silicone baking form to the front of the body. This can be undone at any time.
Re:Nova Launcher Added Facebook and Google Ads Tracking on Wednesday January 21, 2026 @05:22PM (#46712464)
Solution: Just use a firewall to block all remote requests.
Re:Show HN: Semantic search over the National Gallery of Art on Monday October 13, 2025 @01:01PM (#45570692)
It always gives me exactly 16 (or less) images. So this cannot be very reliable because there are more results. Proof: Add a space anwhere to your search string in the form and hit enter again, then some new results are mixed in.
Re:Just Let Me Select Text on Saturday September 27, 2025 @08:16PM (#45400577)
This is how I solve this problem on my Samsung Galaxy S22: make a screenshot, then you are able to select text in the builtin Gallery app via instant OCR. Works surprisingly well. I needed some time to find this feature out.
Re:Show HN: Base, an SQLite database editor for macOS on Saturday August 30, 2025 @06:31PM (#45078561)
I am missing an archive of old versions, so I can run it on Mac OS 10.14.
Re:Ask HN: What are you working on? (May 2025) on Tuesday May 27, 2025 @10:40PM (#44112334)
May take some weeks.
Re:Ask HN: What are you working on? (May 2025) on Tuesday May 27, 2025 @09:03AM (#44106574)
A compound word splitter in JS that splits up words of different (esp. Germanic) languages down to simplexes reliably based on a dictionary, including Segmenter API and SQLite FTS connector. Works very reliably by internally using statistics for known compound words, too, and a stemmer.
Re:Apple Maps on the web launches in beta on Monday July 29, 2024 @06:15PM (#41104290)
This isn't even alpha: Vector simplifications look cruel, especially on vector tile edges, and my Macbook Pro 2012's fan starts spinning.
Re:Ray-Ban Meta next generation of smart glasses on Thursday September 28, 2023 @09:49AM (#37689588)
The website is not usable. The cookie dialogue is shown again and again.
Re:The contagious visual blandness of Netflix on Wednesday January 25, 2023 @09:11AM (#34518416)
Haley Nahman failed to talk about the ACTORS and how they act; the word "actor"/"actress" appears 0 times in this article. Just compare those boring faces with the personalities of former decades!
Re:f.lux on Sunday March 13, 2022 @09:54AM (#30661217)
I'm using this now for years on my Mac, and due to the great configurability I prefer it to the builtin mode.

Thank you!

"451: Unavailable due to legal reasons We recognize you are attempting to access this website from a country belonging to the European Economic Area (EEA) including the EU which enforces the General Data Protection Regulation (GDPR) and therefore access cannot be granted at this time. For any issues, contact [email protected] or call (847) 497-5230."

Which idiot is publishing this site?

"... focus on longevity, portability, and privacy." - "Sign in or register."

That must be a joke.

Does not work offline! No choice for me.
For stuff like this, you use schema.js.
Re:PointerPointer: points to your cursor on Tuesday June 12, 2012 @06:09AM (#4099688)
That's it, the developer has defined the pointing position for every photo manually.
Re:PointerPointer: points to your cursor on Tuesday June 12, 2012 @06:08AM (#4099685)
What is the point about this beyond showing pictures where the finger is next to my cursor? (Why is this popular?) It's not more interesting than a circumference search. You could implement that with a simple rtree.
Re:CoffeeScript 1.3.0 is out on Friday April 13, 2012 @07:19AM (#3836185)
Better you don't work with those people. I don't want to blame you for their lack of knowledge. But if you want to do them (and you and your project) some good, order them to learn JavaScript thoroughly (which includes the unexpected but regular features that deviate from other languages and the common pitfalls), and then go back to CS! CS inherits from JS and makes no sense without it and it fixes some pitfalls but just the ones that you can fix with the constraints and additions of a new grammar. This is not the hard path but the only path to CS.
Re:CoffeeScript 1.3.0 is out on Tuesday April 10, 2012 @08:27PM (#3825252)
We have learned JS, probably you forgot that you need to know it to learn CS?
Re:CoffeeScript 1.3.0 is out on Tuesday April 10, 2012 @08:25PM (#3825245)
This is not necessary since you usually add the CS version to your dev dependencies (package.json). That should be enough. The resulting JS should not show any reference to CS at all.
Re:The Future of JavaScript on Friday February 10, 2012 @10:53PM (#3578527)
+1 (and substack is talking)
Re:Apple Lossless Decoder in Coffeescript on Tuesday December 20, 2011 @03:51AM (#3372781)
Stop wasting your time by rewriting existing JavaScript implementations in other languages that compile to JavaScript!
Re:A Case Against Using CoffeeScript on Wednesday December 14, 2011 @03:22PM (#3353430)
I use CoffeeScript in nearly all my JS packages now, and I like it a lot. But I do not like how many people use it. I use only a subset of the features. The most important aspects are: short function syntax, implicit vars, short object syntax, function binding to this, @. I always use brackets when calling functions, because you need to use them anyway, when you do not pass any arguments. Omitting brackets makes CS nearly unreadable. CoffeeScript is a big win for whatever I am doing. The resulting JavaScript is more stable since CS removes the possibility of a lot of flaws and giving developers the best parts of JS. On the other hand, you still need clear and constraining guidelines to manage complex projects. But you need that in any language and framework. It's not just a necessity in JS development. Thank you, Jeremy. It pays off!
Re:Node.js has a new website on Monday December 12, 2011 @01:47PM (#3344451)
Why do we need ebay, Yahoo, LinkedIn logos on the front page?

Older »