skysight-inc/HackerNews huggingface dataset:
In its simplest form, a functional option is:

type Option func(ptr *T)

The entire purpose of this function is to be called, and when called, to change something about the value pointed to by ptr. That seems like a classic case of side effect to me, since the function returns no value (hence it's not a "pure function") but instead mutates some state (which lives beyond the function call).

For example, we can make such an option like this:

func SomeOption(optionalArg string) Option {
return func(ptr *T) {
ptr.otherField = optionalArg
}
}

The options would then be accepted by another function, such as:

func Example(requiredArg string, options ...Option) T {
val := T{someField: requiredArg}
for _, option := range options {
option(&val)
}
return val
}

In the body of Example, there's no need to use == on an Option. Each Option does its thing when called, and then we move on to the next one. We would use all of these things like this:

foo := Example("someFieldVal", SomeOption("otherFieldVal"))

Obviously, this is a trivial example, but I think it illustrates the point that functional options are used for their side-effects. If you need to do fancier things than just unconditionally set a field, you do all of that in the option itself (either before creating the closure, or inside the body of the closure).
Raygun, a new approach to protein design. It allows you to modify any protein
The difference is that arguably this is the endgame — the entire process can now be automated.

Every doomsday prediction is wrong… until the final one isn’t.
Magic Wormhole is the first, and is its own thing. It's called "Magic" Wormhole for a reason: it tends to blow people away the first time they use it. So lots of people have copied the UX, and some of them have copied the name as well. What you should use is Magic Wormhole itself, or, if you want a non-Python runtime for some reason, wormhole-william.
Someday you will die. Then you will die again when people forget you. Only the effect you’ve had on the world, including teaching others, who pass that along, outlives that second death.

So what’s this about efficiency? You should be more worried about effectiveness, not efficiency. Particularly in this profession.
I wrote an extensive reply to this but unfortunately the HN servers restarted and lost it.

The TL;DR was that from where I stand, you’re doing nothing wrong.

In a previous client we ran Prometheus for months, then Thanos, and eventually we implemented Victoria Metrics and everyone was happy. It became an order of magnitude cheaper due to using spinning rust for storage and still getting better performance. It was infinitely and very easily scalable, mostly automatically.

The “non-compliant” bits of the query language turned out to be fixes to the UX and other issues. Lots of new functions and features.

Support was always excellent.

I’m not affiliated with them in any way. Was always just a very happy freeloading user.
A card processor for sale leads me to this comment:

"Finally, many customers found plugboard programming easier than programming with code, both because they were more familiar with it and because it is visual and direct."

https://onlineonly.christies.com/s/firsts-history-computing-...
https://www.righto.com/2022/04/reverse-engineering-mysteriou...
I love Twitter, it's better than anything else social media wise except this forum and another one which you aren't supposed to name to keep it pure.
You can take many equivalent perspectives on learning systems, but mostly it reduces to "messing with denominators in Bayes' rule". This is no different.

EBMs today aren't used because first you have to fit the joint model, then you have to fix some inputs, then fit the other inputs in a second optimization step. That's just too much compute for today's workloads compared to feedforward NNs.
> The goods in stores that take only cash do not tend to be cheaper than those that do.

In NYC they most definitely do. A lot of the corner stores will change you less with cash. I'm not sure it is a the card payment or that they are keeping the sale off the books, but something that might cost me $18.50, I'll pay $18 for.
Yes. Because they actually provide value both for the consumer and the seller for on-line commerce.

"They make a lot of money!" is not a valid argument against.
The performance for us was best when we evaluated a couple of options, both in terms of scale and latency. I also like the arrow/dataframe interface. We use arrow everywhere else at Shaped so it was a natural integration.
syncthing and Magic Wormhole have different goals. Wormhole is very simple: it is a way (often the best way) to get a file from point A to point B, regardless of the connectivity (or lack thereof) between A and B, without accounts or configuration.
Is that how they secured their rights to residuals?
Or Checkmk [1], which is coming from Nagios and brings thousands of plugins for nearly every hardware and service you can think of..

[1] https://checkmk.com/
And then we'll have 11.
You should check the nulls where you run the risk for panic. This is doubly true if your function is part of a library.
Is there a chance that you would ever consider passionate non-PhD candidates with corporate, startup, and FAANG experience?
Honestly I'm having a really hard time arguing that regular joes are not on the same footing with megacorps as related to "legal gray areas". It's like asking me to prove the sky is blue. Whereas of course, anything you claim, is "obvious, just look around dude".

What's the claim here, that now torrenting is officially legal? People have been torrenting, there's no consequences, it's been hammered out, now it's a-ok?
The wormhole transit protocol will attempt to arrange a direct connection and avoid transferring data through the relay.
You are indeed restricted to some subset, which is the only reason multi-cloud abstractions exist to begin with. The problem isn't punching through the abstractions, it's the pointlessness of the abstractions as a whole. Generic public cloud abstractions don't really work because the value is in the specificity. If you don't need that, don't use the public clouds since those are really expensive and impractical versions of resources for generic consumption.

If your project or BU is too small to make use of the specifics of a cloud, just don't use them. And if you are big enough to do so, you're also big enough to not be helped by some application specific IaC flavour of the day.
click under the video and choose 'not interested'.

you wouldn't have liked the internet in 2000s. there were isis beheading videos to stumble upon randomly.
Why Solve Puzzles in Minutes When You Can Code a Solution in Days?
I tried to help some dude understand integration by parts, which I’m not sure I’d understood myself. I warned him. But it was late, he was desperate, and I was just going to go play computer games anyway.

I figured it out, but I’ve no idea if I got him sorted out for his final.
You can also run a business without being unethical
> the necessary corollary: specifying the type system.

It's clearly not strictly necessary though. Python has shown that.

I mean I agree it is pretty mad to just say "you can write types but they mean whatever" but surprisingly in practice it seems to work ok.
I prefer Derek's previous thing he won't work with: Satan's Kimchi. https://www.science.org/content/blog-post/things-i-won-t-wor...
I have seen some brands that do essentially this, e.g.: https://m.media-amazon.com/images/I/61wjeonOCdL._AC_SL1500_....

Personally I just keep a few rolls of single-ply Scott on hand for backup if my stock gets too low.
I'm not in a position to judge this author's work as a whole, as this is not my area of expertise.

I know this person as an author of "super memo" algorithms for spaced repetition learning, so yes, he most likely have a bias, probably even financial stake to some degree, although not sure, I don't follow him in any way, so don't know if this ever was or still is the case.

In the past, I've used some of his algorithms in particular, with quite interesting results - subjectively speaking, not in any scientific regime, And, obviously, those are just one of many. I also remembered this was his area of interest in general, so assumed his wiki to be of some interest in the context of discussed article.

Thanks for your critical opinion, it will contribute to my priors about his writing.
I made Eternium.css – a small CSS library for layout and form elements
> Any programming language that allows it is flawed.

I think any language that allows that has different priorities than complete code correctness. There might even be programmers out there that would also prefer those priorities (simplicity, speed, etc) over having the compiler spend time every compilation to make sure a pointer is null or not.
You are arguing a distinction without a difference. If socially one could not muster the will to do something then it will never happen -- it cannot be done.

We certainly could reduce the use of fossil fuels by over 90% in a few months -- global nuclear war would probably work -- but I hope nobody has the will to make that happen. Conversely we could reduce them by that much over a 30 year span, but currently lack the will. So in that case the distinction would make sense.

But few are willing to "replace this working thing for a small gain" (and you can argue about rust but when something works and the downside is a statistical risk demonstrably of low probability* ) it will be hard to find many people willing to invest in it.

Eventually these old programs will be replaced but they won't be replaced with functional equivalents, any more than, say, wired home phones were replaced with fibre optic connections. They will be replaced with something de novo instead.

* nerds like us may say the risk is significant but the level of uproar in security breaches is negligible in practice and the actual incidence of bugs due to things like use-after-free is likewise tiny.
Don’t reinvent the wheel - there are many mature monitoring agents out there that you could ingest from, and it allows easy migration for customers.

As to what I monitor - normally, as little as humanly possible, and when needed, everything possible.
> If Brazil's leaders are unwilling to allow a speech platform go uncensored, why not ban X?

Because it’s not black and white

> Should X have to comply with every country's censorship requests?

X must comply with the laws of every country it’s operate. If it cannot, or not willing to do it, it must leave it. That’s exactly what Elon have done

> Elon alleged that Moraes requested private user information as well. Should X hand over any and all user data that governments ask for ?

If it’s done legally, yes.

This take is quite bizarre, honestly, given how personal data protection laws are subpar in the US. Even from the government (remember patriot act).
Intel cancelled a 25 billion site in Israel. The future of multi national companies in Israel does not look bright. This feels like a propaganda piece.
No, just reporting my experience. I liked his original style better. Sometimes, an orange is just an orange.
A cybersecurity researcher doxed the leader of LockBit ransomware gang
I understand that Europe is more secure with chip+pin, but in the US, debit cards do exactly what you describe. If fraud happens, you are out money until it is resolved.

The key difference from cash, in the US, is the ability to abuse cards at a later date without the physical card. For someone to steal your wallet, they have to be colocated with you and can only steal as much as you're walking around with.

As long as debit cards have a magnetic stripe and have their full number printed on them, and that information is useful, this problem remains.
Spending is not socialism.

Spending also ballooned under Trump and Trump is most definitely not a socialist (aside from socializing losses) (spending increased *before* the pandemic).
Sorry, maybe I ought to have been more explicit about "By the Galois Connection between G and C.":

https://ncatlab.org/nlab/show/Galois+connection#GaloisTheory

> The Galois theory normally taught in graduate-level algebra courses ... involves a Galois connection between the intermediate fields of a Galois extension and the subgroups of the corresponding Galois group.

Instead of speaking informally, of abuse of Galois Theory, I should have spoken formally, of abstraction of Galois Theory.

Does it make more sense now?
There's already a startup for the last use case. I forgot the name though.
One figure refers to recorded "crimes", the other to actual imprisonments.

Do you understand that the two are simply not comparable, and that there's obviously no analogy here? Even the alleged offenses aren't even comparable.

This isn't just one extremely basic logical fallacy you're making, but two.
> Techniques exist to watermark such AI generated content – readers easily could be alerted. But that idea has already been nixed by OpenAI CEO Sam Altman, who recently declared that AI watermarking threatened at least 30 percent of the ChatGPT-maker's business.

I realize it would be an arms race, but are there any browser plugins that can alert readers to content that is likely AI-generated?

I do think that some required disclosure that "this content was generated" might be a good thing. Sort of how magazine and newspaper advertisements that are formatted to look like news articles, or advertising programs on TV that look like news programs or talk shows, have to be disclosed as advertisements.
An Evening of Eschatology – Premillennialism, Amillennialism, Postmillennialism [video]
We haven't had any issue getting all of our staff -- nontechnical users alike -- on yubikeys. As part of education we skip the PKI portion and just point out that it is "like your physical house key. You plug it in and touch it to turn the key to unlock"
The secret lives of snowblowers
I think the point kind of swooshed me (I notice taking out the last tube as suggested by another comment).

Adam is obviously massively competent and known etc, but as an avid SO poster I have to point out the potential accidental footgun discharge:

In C abs() returns int, you must use fabs(). Not sure about other C-like languages and the article doesn't specify language but still.
Ah, thanks for highlighting that. Tone can be quite a painn
That hasn't been my experience. My email is at my own domain, and I haven't had a problem. However I opened my wealthfront account many years ago.
The usual consensus I've heard is that UAC is always on even after turning the slider all the way off, while using the admin account doesn't use UAC (changing the EnableLUA in reg also works).
Syncthing also does relaying like that, NAT traversal, bridges, etc. all automatically. If it can, it will use local IP connections and go blazing fast. If for some reason your network configuration(s) don't allow for any valid connections, it will use a relay or bridge - either a default or one you setup - and work relatively fast as well.
(magic-wormhole author here)

Thanks for making a donation!

I run the relay server, but the Debian maintainer agreed to bake an alternate hostname into the packaged versions (a CNAME for the same address that the upstream git code uses), so we could change it easily if the cost ever got to be a burden. It hasn't been a problem so far, it moves 10-15 TB per month, but shares a bandwidth pool with other servers I'm renting anyways, so I've only ever had to pay an overage charge once. And TBH if someone made a donation to me, I'd just send it off to Debian anyways.

Every once in a while, somebody moves half a terabyte through it, and then I think I should either move to a slower-but-flat-rate provider, or implement some better rate-limiting code, or finally implement the protocol extension where clients state up front how much data they're going to transfer, and the server can say no. But so far it's never climbed the priority ranking high enough to take action on.

Thanks for using magic wormhole!
Maybe less blood flow gets directed there when stressed
For a single file or simple app, sure, your style works fine. But when you get a few hundred components in a complex app, importing them into each other and writing them as JSX tags feels like a simple, easy to understand syntax, as least to me.

And that is what a lot of the pushback against React seems to come down to as well -- it is overkill for simple things. And it is. But different people doing different apps with different levels of complexity... all have different needs.

So it is not as simple as one having appeal over the other. They are different tools for different problems.
>needs to be responsible enough not to lose it.... needs to know to invalidate the lost one and issue them a new one.

Ah, the never-ending circle of life.
I'm not going to give you a citation. Historically, "defense in depth" has been a way to inoculate security tooling from critique or even assessment; things don't need to work at all in a "defense in depth" regime, because you can always say there's some marginal "fail2ban"-level utility to any countermeasure and retain it on that basis. It has in cases prevented meaningful defenses from being deployed, and has crudded up lots of people's attack surfaces. You see this most clearly in endpoint security, where "defense in depth" loaded everyone up with security and AV agents that were all riddled with memory corruption vulnerabilities.
Blik now supports contactless payments by, guess what? Providing virtual Mastercard card.
If Elon and X thinks they cannot in good faith comply with the laws of a country in which X operate, they are right to leave it.

I personnaly see the attacks against the judiciary of Brazil more troublesome that this move.
> "Maybe an unpopular opinion, but some jobs shouldn't exist."

Easy to say until your profession is next up on the chopping block.
Sounds like the solution is pushing for the same type of legal minimums everywhere else, then ;)
> Well, if a job can be done by a machine, it should be done by a machine - after all, if there is one thing common across humanity, it is the desire for progress.

Is that really progress though? Honestly, more and more jobs can be done by machines. But what about the fact that human beings need to connect and feel at least that they are contributing somewhat to society?

Progress is not synonymous with automation. And it's not universal across humanity. The Amish recognize that not all automation is good and they hold meetings to decide which technologies should be introduced.

Many people realize that there is an ideal point of automation -- and complete automation is not ideal.
I push the new guys to fix project documentation once they’ve figured out a tricky bit. It helps solidify their knowledge, and helps us double check that they understood, and it’s something they can contribute when they still haven’t become part of the bus number on anything yet.

That all sounds reasonable and smart, but the real reason I do it is the Curse of Knowledge. People in a system can’t see it from the outside. They make assumptions, use opaque or even misleading jargon, and employ circular logic. The new guy doesn’t know the lingo, or the circular logic. Their explanation will make more sense to the next hire than anything I can say. And having it written down this way can also give me new perspective on the system. Maybe it doesn’t have to work this way.
It’s not a few billion though.
its tens of billions spread across a bunch of different organizations, honestly if you count Stripe, PayPal etc as well, you are in the hundreds of billions. In the last fiscal year for Visa, they alone made $14.9 billion in profit. This doesn’t factor any of the second order money effects either, like kickback to banks for rewards, and this is just Visa. Mastercard, American Express and Discover all factor into this too, at least in the US, and a quick glance suggested this is a world wide figure, which introduces even more variables

The volume is also misleading because it does not differentiate on source, fee structure etc. it’s a gross (as in financial gross) number that says very little about how it was moved and what it cost to move it. Digital payments is a huge category
Have you heard a similar argument to “we don’t need authentication to this application because it’s only accessible on the VPN”?

It allows some pretty sloppy thoughts about security. Treating apps as if they were public is correct because the damage is more likely to be done with someone who already has access.
Yes. This is the right way to think about the OMB memo. Good thoughts, which may or may not apply to your organization.
> waiting tables

Yeah but talk about terrible jobs.

If I were an artist I think I'd prefer doing commodity art pieces to pay the bills vs. working in a restaurant.

And yes, it's subjective. I know some people probably like waiting tables.
Show HN: I built a directory of resources for Bitcoin beginners
I am Isaque Franklin and I build products and solve problems in my free time (between college and work) and also for a living.

I am a Bitcoin maximalist and I truly believe that Bitcoin is the sanest money that exists today, and I also belive that hard money is essential for the development of civilization and for the future of mankind.

However, one cannot uderstand Bitcoin and all it's applications and benefits without falling down the rabbit hole - an experience every bitcoiner has tasted in the beginning of their journey and constantly tastes when learning new things about bitcoin. Unfortunately, the rabbit hole is very tiring. It's hard to find good organized information like tutorials, pdfs, lists and others. You can actually learn everything just by searching the internet for hours straight to try and find really good information, but the time you spend doing so does never come back.

And thinking about the time waste when a beginner falls down the Bitcoin rabbit hole, I created Directory of Satoshi. It basically is just a place where a newcomer can find all the basic information he needs to start in the Bitcoin world.

If you've read until here, I appreciate your time.

Here you can find out more about me and my projects: https://x.com/IsaqueFranklin0
A 400B parameter model which is completely free
Hi there.
This is my newest project. I've been working on this project with an amazing team and we're glad to announce JabirLLM 400B, which can be considered a direct competition to famous closed-source AI models such as Claude or GPT-4o.
I will be appreciating your comments and opinions. For testing the project, you only need to go to the website and provide an email address, then obtain your API key and the you can try the model.
Have fun prompting.
> Well, if a job can be done by a machine, it should be done by a machine

This is an opinion, although I suspect you hold it strongly.

> after all, if there is one thing common across humanity, it is the desire for progress.

How do you define progress? Pure production and consumption? Net increase in subjective happiness across all people?

If I can make a book recommendation, check out the Culture series by Iain M. Banks. These are well-trodden thought experiments in science fiction, and they're more relevant than ever.