Better HN
topnewbestaskshowjobs
Log inSign up

benjamaan

0 karma · joined May 4, 2017 (9y ago) · 55 submissions

Submissions

comment 6mo ago · link · parent

Anyone made this connection? https://en.wikipedia.org/wiki/Colossus_(supercomputer)

comment 6mo ago · link · parent

I thought US was going to be about how uncanny this is: https://en.wikipedia.org/wiki/Colossus_(supercomputer)

comment 1y ago · link · parent

The merchant receives confirmation on the POS

comment 1y ago · link · parent

Technically it’s Bitcoin Lightning. We support that because its cheap And fast and widely used (650m users).

Also we are Bitcoiners.

However we do support exchange wallets like Luno.com, VALR.com and Binance.com and are adding many more and whatever crypto they support.

As Bitcoiners we try to basically just mention Bitcoin.

comment 1y ago · link · parent

We support Bitcoin lighting as a protocol because many wallets support it and it has a lot of users

Nano unfortunately probably won’t be worth supporting because of the small user base

However we’re quite open to supporting any wallet that wants to work with us

comment 1y ago · link · parent

We’d love to enable itch and valve to accept bitcoin payments

comment 1y ago · link · parent

We as MoneyBadger create an invoice for the customer in their local currency e.g. USD. If they pay with Bitcoin Lightning, they have 3 minutes to complete the transaction at our offered exchange rate. We take on the risk of the price moving.

If they’re paying with one of the exchange wallets we support like Luno.com, VALR.com or Binance.com we do the same, and they can choose to pay with any currency supported by those wallets.

Refunds are processed at time of refund and are for the original amount in the currency of the invoice e.g. USD but at the exchange rate at the time of refunds.

It really all just works the same as paying with a credit card overseas would if you’re paying a EUR bill with USD funds.

comment 1y ago · link · parent

I work for MoneyBadger

comment 1y ago · link · parent

The stores just said what they sold. They didn’t say who they sold it to.

comment 1y ago · link · parent

Not true https://x.com/gavingre/status/1949395378610069905?s=46

comment 1y ago · link · parent

This one is also cool! https://x.com/itsmaxdemarco/status/1611019316488536066?s=46

comment 2y ago · link · parent

[flagged]

13.

Are we like dinosaurs to mammals and AI is the asteroid?

1 points · by benjamaan · 2y ago · 1 comment

comment 2y ago · link · parent

Congrats and thank you! We’ve been a happy customer since early on. Although we don’t have much usage, our products are mostly R&D, having Cerebrium made it super easy to launch cost effectively on tight budgets and run our own models within our apps.

The support is next level - team is ready to dive into any problem, response is super fast, and has helped us solve a bunch of dev problems that a normal platform probably won’t.

Really excited to see this one grow!!

comment 2y ago · link · parent

I made a Malazan Wiki AI using the fandom wiki pages - and it’s bloody accurate!

My friend suggested it after I told him ChatGPT was pretty useless.

You can ask it complex questions like give a detailed timeline of the relationship between two characters.

You can even ask it to draw charts like relationship diagrams.

Pretty neat!

Just watch out for creating spoilers.

16.

Malazan Wiki AI – CustomGPT(chatgpt.com ↗)

1 points · by benjamaan · 2y ago · 1 comment

17.

Ask HN: How did RedHat Linux get it's first users?

5 points · by benjamaan · 2y ago · 8 comments

18.

Ask HN: How would Extropic generate an image like Midjourney does using AI?

1 points · by benjamaan · 2y ago · discuss

comment 2y ago · link · parent

why would I lie?

comment 2y ago · link · parent

Same question in chatgpt

https://chat.openai.com/share/36e9e015-8645-4c07-9131-d8d773...

Alright, let's dive into this. You're looking to modify your function to not use the `auto` keyword with parameter packs but instead use a template parameter. The thing is, when we talk about replacing `auto` with a template parameter in a situation like yours, it gets a bit tricky due to how parameter packs work with templates and concepts.

Your initial function definition is pretty sleek because it uses C++20 concepts (`std::same_as`) alongside `auto` to enforce that all arguments passed to `IsKeyDown` must be of the same type as `KeyCode`. This is cool because it gives you compile-time type checking right off the bat.

However, when you're looking to shift away from `auto` and use a template parameter list directly, you'd typically define a template that applies a concept to a type parameter. Unfortunately, the direct translation you're asking for, using `std::same_as<KeyCode>` directly in a template parameter list for a function, isn't how concepts are applied in template parameter lists. Here's how you can achieve a similar effect:

```cpp template<typename... Keys> requires (std::same_as<Keys, KeyCode> && ...) inline bool IsKeyDown(Keys... keys) { return (::IsKeyDown(KeyCodeToRaylibKey(keys)) || ...); } ```

In this version, `template<typename... Keys>` declares that `IsKeyDown` is a function template that accepts a variadic template parameter list named `Keys`. This means you can pass any number of arguments of any types to `IsKeyDown`, as long as they all meet the requirement defined by the `requires` clause that follows.

The `requires` clause here uses a fold-expression over the logical AND operator (`&&`) combined with the `std::same_as` concept to ensure that every type in `Keys` is the same as `KeyCode`. It's a way to say "all types in `Keys` must be `KeyCode`," which aligns with your original intent but doesn't use `auto`.

This approach maintains the compile-time check you wanted, ensuring all arguments to the function are of type `KeyCode`, and it doesn't use `auto` in the parameter list directly. It's a bit more verbose but achieves the goal within the constraints of the language and how templates and concepts interact.

Remember, this approach leverages C++20 features heavily, so make sure your compiler and build environment are up to date to support this syntax.

12