News for hackers. Stuff that matters.

Rican7

Re:PostgreSQL 17 on Thursday September 26, 2024 @04:09PM (#41662705)
Wow, yea, the performance gains and new UX features (JSON_TABLE, MERGE improvements, etc) are huge here, but these really stand out to me:

> PostgreSQL 17 supports using identity columns and exclusion constraints on partitioned tables.

> PostgreSQL 17 also includes a built-in, platform independent, immutable collation provider that's guaranteed to be immutable and provides similar sorting semantics to the C collation except with UTF-8 encoding rather than SQL_ASCII. Using this new collation provider guarantees that your text-based queries will return the same sorted results regardless of where you run PostgreSQL.

Re:Leaving Rust gamedev after 3 years on Friday April 26, 2024 @03:30PM (#40173111)
> And Rust's ~20 years

huh? It's only been about 9

Show HN: Benchmarks of UUID bintext codecs in Go

https://github.com/Rican7/bench-bintext-codecs

Hey y'all. I've been reading so much about different kinds of k-sortable, unique IDs for entities/resources, and the different encodings to use for different reasons (length, case-sensitivty, etc), that I wondered if any of the well-known implementations (in Go) had any performance benefits, and decided to benchmark them.Will this be the bottleneck of your app? Nah, most likely not, but it was...

( Read More... | no comments | on HN )
Re:ULIDs and Primary Keys on Friday April 12, 2024 @05:21PM (#40017799)
Ironically, the information and link that you've shared is incorrect / outdated.

The newer draft proposal allows for multiple different options of time information to be added to a UUIDv7 encoding, beyond the typical 48-bits of Unix epoch millisecond data.

https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc...

Show HN: Lieut – An opinionated, zero dependency, framework for CLI apps in Go

https://github.com/Rican7/lieut

Lieut, short for lieutenant, or "second-in-command" to a commander.An opinionated, feature-limited, no external dependency, "micro-framework" for building command line applications in Go.I just published a tagged version of this project that I created after pulling it out of another project I'm working on.I basically standardized some of the ways that I create CLI apps. If you're curious why I...

( Read More... | no comments | on HN )
Re:Pixel Shaders in Windows Terminal on Friday January 29, 2021 @09:33PM (#25965433)
Oof, the timing on this comment is pretty terrible.

They literally just launched (in preview) a settings GUI: https://github.com/microsoft/terminal/releases/tag/v1.6.1027...

Thanks!
Haha. Nice!
Absolutely I would! Any contributions would be greatly appreciated!
I'd personally love that too.

Unfortunately, though, its a bit complex to even try to use the local dictionary: https://github.com/Rican7/define/issues/1

Ha, that's such a classic HN comment.

I appreciate you taking the time to look at the source. I used this, like I do most of my side projects, as an opportunity to learn a few things.

I wanted a generic abstraction so that multiple sources could be used. Originally I didn't want or think of the need to support multiple sources, but it quickly became apparent how necessary that was when looking at the quality of free vs paid vs personal-key-required sources.

In any case, thanks for checking it out!

Yeaaaaa, this isn't good.

This is what CloudBleed looks like, in the wild: https://gfycat.com/ElatedJoyousDanishswedishfarmdog

A random HTTP request's data and other data injected into an HTTP response from Cloudflare.

Sick.

I was looking for a well made and reusable "retry" library, but all I could find were libraries with awkward interfaces/APIs, overuses of state/pointers, a lack of extensibility, or they'd somehow opinionate themselves towards a specific purpose (HTTP retry libraries are in a major abundance).

So, I figured I'd take a stab at creating a retry library that worked in a simple loop with functional composition that would allow for easy extensibility. I ended up writing an API that somewhat heavily used the functional option pattern described so well by Dave Cheney in his blog post: "Functional options for friendly APIs" (http://dave.cheney.net/2014/10/17/functional-options-for-fri...).

Ideally, the library's packages can be used separately, so you could use the `jitter` transformations even if you don't want to use the actual `retry` mechanism. That is why the library is split into a few packages.

Anyway, I'm curious as to what HN thinks about this library. Anything that I could definitely improve? Is there anything awkward about the API in particular? Something that I missed?

I appreciate the feedback! Thanks!

Re:Issue and Pull Request templates on Wednesday February 17, 2016 @04:02PM (#11121369)
... that's what the HN link is
Re:Show HN: Robin – OpenTable for your office on Tuesday June 23, 2015 @07:40PM (#9768559)
Thanks! Our design and product development teams put a lot of time and effort into it. Its important to us.
Re:Show HN: Robin – OpenTable for your office on Tuesday June 23, 2015 @07:38PM (#9768548)
Full disclosure: I work for Robin. :)

Eventboard is one of a bunch that do tablet and analytics. They take a different approach on a few things, we build heavily for mobile and employee-facing apps and not just facilities managers.

Re:Authentication Cheat Sheet on Monday February 02, 2015 @01:38PM (#8985841)
Because `bcrpyt` only accepts 72-bytes, (so abstractions ignore everything after 72 characters).

Example: http://3v4l.org/4lGu3

Older »