Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benjoffe
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Show HN: A Zoomable Equal-Area Map Projection that interpolates to Mercator
(benjoffe.com)
4 points
by
benjoffe
3d ago
|
0 comments
2.
▲
A faster way to convert a timestamp to Hour, Min, Sec
(benjoffe.com)
9 points
by
benjoffe
11d ago
|
0 comments
3.
▲
by
benjoffe
29d ago
Thanks for sharing that. I have a mobile-friendly web-app where you can practice this technique, just click the link in the page's nav: "Weekle - Weekday Guessing Game"
4.
▲
by
benjoffe
1mo ago
Thanks! I'm pretty sure with this one I spent more time working on the blog post than I did developing the algorithms. I would not normally spend such effort, but in this case I felt that the functions were too hard to understand witho
5.
▲
A new 2-3x faster algorithm for computing day-of-week
(benjoffe.com)
5 points
by
benjoffe
1mo ago
|
0 comments
6.
▲
by
benjoffe
9mo ago
Correct URL: https://www.benjoffe.com/fast-leap-year (The link in the submission is incorrect; apologies for the confusion.)
7.
▲
A faster is_leap_year function (full-range, C++)
(benjoffe.com)
2 points
by
benjoffe
9mo ago
|
2 comments
8.
▲
by
benjoffe
9mo ago
In this article I present a new faster full-range function to calculate whether a year is a leap year. This type of calculation is a fundamental date library utility, it is used all over the place: validating and parsing dates, determinin
9.
▲
by
benjoffe
10mo ago
That is an interesting question. It might also come into play if developing SIMD alternatives for batch date processing, as one can have more lanes with 16-bit. I plan to make a blog post covering SIMD and if 16-bit algorithms have reasonab
10.
▲
by
benjoffe
10mo ago
Thanks, that is a good idea. This was originally a blog post series, and the first article gave a bit of an introduction. When I started the blog series, I expected the first article to be the most noteworthy, with the 2nd and 3rd being les
11.
▲
by
benjoffe
10mo ago
The first article in this blog post series has a little section talking briefly about this history, and there's a representation of this that I think sheds a lot of light on the original design. See the heading "Side-Note on Month
12.
▲
by
benjoffe
10mo ago
Thanks. I was fortunate enough to be programming on an ARM based device, which meant that the terms (x * 4 + 3) strongly stood out to me as highly inefficient, being 2 cycle prep for the more important division. On x64 computers, those two
13.
▲
Show HN: A faster day-count to Y,M,D algorithm – 30-40% speedup
(benjoffe.com)
3 points
by
benjoffe
10mo ago
|
0 comments
14.
▲
A Fast 64-Bit Date Algorithm (30–40% faster by counting dates backwards)
(benjoffe.com)
395 points
by
benjoffe
10mo ago
|
94 comments
15.
▲
by
benjoffe
10mo ago
A write-up of a new Gregorian date conversion algorithm. It achieves a 30–40% speed improvement on x86-64 and ARM64 (Apple M4 Pro) by reversing the direction of the year count and reducing the operation count (4 multiplications instead of t
16.
▲
A New Faster Algorithm for Gregorian Date Conversion
(benjoffe.com)
5 points
by
benjoffe
11mo ago
|
1 comments
17.
▲
The Smoital System – A method of timekeeping on Mars based on UTC
(benjoffe.com)
2 points
by
benjoffe
1y ago
|
1 comments
18.
▲
by
benjoffe
1y ago
This article dives deep into a topic I find very interesting, even if it’s not immediately useful. If you don't have time to read, you may want to quickly check "Appendix A" for the “Smoitus” chart to see visually how the tim
19.
▲
by
benjoffe
3y ago
As I noted in this HN post, I did not invent this system (there are other tutorials online). I'll update the web app itself to state this clearly. The goal of the web app is more about the practice modes and daily game, people are free
20.
▲
by
benjoffe
3y ago
The initial popup dialogue shows the default locale setting with a "change" button right next to it, and it can be changed at any time on the settings tab.
21.
▲
by
benjoffe
3y ago
The intention is to present dates the way they often are found in that country (not just the "gold standard"). From my understanding Canadians often encounter dates in all three formats you noted (although often using named months
22.
▲
by
benjoffe
3y ago
Thanks. I like your suggestion and I'll add a YYYY-MM-DD only option.
23.
▲
by
benjoffe
3y ago
Thanks, I'll add a dismiss button to that popout soon.
24.
▲
by
benjoffe
3y ago
Thanks, there is some attempt in the code to auto select US/Canada date format if the user's timezone is in the USA or Canada, but I didn't actually test it to see if it is activated correctly. Any US user's able to chim
25.
▲
by
benjoffe
3y ago
Thanks, that's a good point that it does not clearly explain the use of that table. I will update the page soon to explain that the table cell represents the last 2 digits of a year, and the left column is the result of the year calcul
26.
▲
Show HN: Weekle – a web app to learn how to calculate the day of the week
(benjoffe.com)
122 points
by
benjoffe
3y ago
|
32 comments
27.
▲
by
benjoffe
7y ago
That's a good feature but quite different, if the user is at home when they need to use the app that first time then it reveals where the user lives and possibly personally identifies them.
28.
▲
by
benjoffe
7y ago
It seems a bit extreme to offer apps one of two extremes: either my sub-metre location or no location at all. It seems the reasonable default for location sharing should be something like sharing the rough suburb that I'm in. This solv
29.
▲
by
benjoffe
9y ago
> Is the 'light' reflecting off the asteroid emitted from the sun? I had never seen or even knew radar could distinguish value like what is shown here. Yes it's emitted from the sun, it's clear given that the time-lap
30.
▲
by
benjoffe
9y ago
Paradoxically, respecting the wishes of the dead is more about empowering the living. If there are no such guarantees then people alive will take actions to enforce their wishes past their death. In the context of Wills, that would mean mor
More ›