skysight-inc/HackerNews huggingface dataset:
Ask HN: Quants and traders: Best OS backtesting platform for trading strategies?
I'm looking for some open source software to dive into for backtesting trading strategies in/out of sample which produces useful tear sheets, nice built in functions, and quality documentation.

I have looked Quantopian/Alphalens/Zipline, but it seems like it has been left to wither and die outside of Quantopian's online platform. The documentation is frankly terrible.

I have briefly looked at Quantconnect/LEAN and it looks more promising but havent dived in to much detail.

I am also looking at the Quantstrat package in R which appears to be quite promising as well.

I'm involved in the futures markets myself but data access is not an issue. I have Bloomberg so can source my data from them.

So, Quants and traders of Hacker News who aren't using in-house corporate solutions, what are you using?
That’s not correct. Tesla did not partner with any Chinese company.
Can't all of this be sidestepped and just write standard (non-forked) OCaml and feed its bytecode through Js_of_ocaml https://ocsigen.org/js_of_ocaml/ ?

That might not have the ultimate React integration (guess that's the answer to the question). But on the other hand probably aligns better with the instinct of many developers to reduce (albeit not eliminate) levels of unnecessary layering.
Possibility of sharing code between backend and frontend.
I still like having multiple monitors even with i3, but a single large monitor is definitely more useful to me than multiple small ones, so given the choice I would choose a larger primary monitor before choosing a second or third monitor.
A few advantages:

- Rust compiles to WASM, not JS, so you can actually take advantage of its low-level nature in the browser for performance critical tasks within your app.

- The Rust code you're writing is still statically compiled, so you still get to take advantage of Rust's typechecking and IDE features.

- Some people just like writing Rust code more than Javascript. Part of the reason Javascript took off so quickly on the server was because there's a huge productivity boost from using one language everywhere. Similarly, if you love Rust but think that Javascript paradigms around prototypes, closures, or `this` are weird, you get to ignore that and take advantage of one of the best app distribution platforms in the world without learning a new language.

I pretty solidly hold to the position that increasing language diversity on the web is a good thing. Particularly with Rust, since they've put in the work to have proper, accessible support that's still separating app logic from DOM layout and CSS styling. I'm really happy with how their community has approached building out Rust as a first-class language on the web rather than just as native language that happens to have a web compile target.
Exactly. As far as I'm aware, TikTok is pretty much malware, meant to collect every single possible piece of information it can get access to on your phone, so I would recommend everybody to avoid it, and I'm not opposed to a ban at all.

What matters is the way it's banned. And why. And the current process feels every bit as wrong as TikTok itself.

What the US needs is proper data protection laws. And then it should enforce those laws equally against US and foreign companies. Just arbitrarily banning one thing because you realise that what you always allowed for US companies, is suddenly a problem when it's a Chinese company, is absolutely wrong.
just? sales is the more important part of a for profit company you know.
This isn't that bad.

What makes this worse is when 1/3 of the teams in your org decide that they want a similar feature, but each comes up with their own custom-named tag ("owner", "lead", "point person", "point of contact", "jefe").

And then you want to run some jql queries against those tickets, and you have to use disgusting query generators to de-dupe the tag monstrosity.

They've done an excellent job of giving you just enough features to shoot yourself in the foot with.
This is a question only a lawyer in your local jurisdiction can answer.
Most US firms can do business in China. Like Tesla, who even gets preferential treatment that were envied by anyone who ever did business in China (foreigner or not).

They just relinquish certain strong hold to a sovereign nation, like they have to host their data center inside China (both politically important, and economically beneficial). And they also risk their data being stolen (or so they claim).
America's Invisible Pot Addicts (2018)
When you apply pressure to ice, does it melt or freeze?

Google says,
https://van.physics.illinois.edu/qa/listing.php?id=1593
Curious indeed that other nations were able to progress and modernise through trade and exchange without compromising their sovereignty, but that wouldn't be enough for African nations for some reason. What exactly would those reasons be?
Telemetry and data collection don't contribute to paying the bills, only to let Mozilla work on improving the browser.

Default search engine does.
Abiword was great, I used it extensively when I was a student.
Understanding Startup Stock Options
Entrepreneur Raised $300M to Help Millennials Hit Their Financial Goals
If you can live without Chrome, you can live without all Chrome extensions in the article; If you can live without a desktop/laptop, you can live without all Chrome extensions.
I just don't like this kind of eyeball-attracting title: Too much exaggeration
That’s an insane amount of extensions, most of which seems to deal with fixing “broken” website or at least make them tolerable.

Reader mode is a little surprising, doesn’t Chrome have that built in?
>Grammarly

Are we cool with them now or are they still stealing your data? I'm not up to date
From an outsider perspective it's still make very little sense.

I thought ReasonML is a language, an alternative to Elm, PureScript, or other FRP-focused compile-to-js languages. When I check projects on GitHub written using ReasonML it says "Reason" as a language name (why is it just Reason, and not ReasonML?). For example, Onivim: https://github.com/onivim/oni2

What's BuckleScript then? How is it related to Reason? If it's related why did it have such a seemingly unrelated name in a first place?
A software to keep software from GitHub up to date
The model used by https://lobste.rs/about#invitations seems to work well. Create a graph.
What does the Mozilla Foundation do if it doesn't develop Firefox? What do they spend their money on?
Mostly agree but I think the distinction is not always clear between data model changes and changes to application-tier logic. In most cases you can do a particular refactor either way and you have to figure out what is the best way to achieve it. Just pushing code around is usually not tremendously valuable but it's also not particularly costly.
Except you have to trust lots of people for Bitcoin to work, from DNS record holders to developers to intermediaries and beyond. The whole system is dripping with trust, so why not just use standard currencies?
> "trash 80"
Boo! :)

Still much love for it...
There are already page-break attributes for CSS.
Closer to two thousand years ago. That's how far removed it is.
22 CCR § 1256-32: "If an employee, without the knowledge and approval of his or her employer, accepts work for a competitor, the employee has engaged in misconduct."

I think we agree about vacation time.
What is ETH2 and why should I care about it?
Neutron Star Mergers & Acquisitions sounds like a great title for book or TV show.
Congratulations on Shipping !

This is an interesting problem to solve .

ClickHouse support will make it way more interesting.

Are you planning to leverage Materialized views ?
I wasn’t referring to genetics or saying that templates aren’t necessary or useful, or even that they aren’t common. Those uses of templates are relatively straightforward most of the time. Where templates, IMHO, become unwieldy is when trying to compute things at compile time. In many cases constexpr works here, but my point was that the remaining cases are relatively rare, certainly when you need it (as opposed to just wanting it, eg for performance).
If you try to directly translate SQL to MongoDB, without changing your schemas or query, then yes, it's gonna look bad. That doesn't make for a good comparison, and I think you know that.
Then that's a sign you should put more work in your test-suites.
> (assuming employee lack of ability/tools) It's part of our data verification policy

That's a silly proposition. sounds like you need to learn about hashing and signatures...
Hmm, that's a long list. I use zero extensions, and I've never really had the urge to go looking for them. Now I feel like a weirdo ;)
There's an incredibly useful extension that's not on that list that I bet a good number of HN folks would like:

Vimium [1]

It lets you use keyboard shortcuts to navigate through webpages, click buttons, jump to text boxes, etc. it's been huge for me both as a productivity tool (it's significantly faster than using a mouse for navigation) and also for reducing RSI/strain on my hands.

Here's a video of it in action as you really need to see it being used to understand the different interaction model it provides.

https://youtu.be/t67Sn0RGK54?t=21

1 - https://chrome.google.com/webstore/detail/vimium/dbepggeogba...

edit: fixed link (but if you enjoyed the writeup of data security requirements let me know).
That ship has sailed long back. With the patriot act and other legislations in this area that gives enormous power to the executive , also the secretive FISA court which hardly rejects any warrant requests etc , there is no real due process when it concerns “national security” .

Congress can hardly control the three letter agencies violating amercian rights on a massive scale or blatantly lie under oath in testimony

Don’t think a foreign company is going to allowed to actually proceed with a suit involving national security as the administration is going ton claim
I think we can all agree that the dev who starts a big refactor and then drops it when it's half-done is a terrible human being
I always felt the Next platform limitations is why he was paranoid about CPU architecture at Apple.
Try looking at Tuxedo laptops
I'd say could lead to tribal separation, which does happen sometimes at in-person events: people sit with their friends.

However, I think having the ability to take the stage and speak to all participants can help to reduce that, by requesting people to try to mix it up a bit, sit with someone new.

Also, I think the dynamics would be different based on who gets to name the tables. If just the host of the room, then maybe more control. If table hosts can name their table, maybe it has a higher likelihood of people sticking with people like them.

Even if it does lead to tribal grouping, sometimes that's not a bad thing. For example, if I'm running a session where I want people to reflect deeply about some topic, sometimes it's nice to have the built-in trust that comes from being of the same group.

I could talk about this stuff for days :-)
If you are interested in using causal inference in actual research practice rather than just talking about it in theory, this book (and not anything by Judea Pearl, for example) is the way to go! An earlier draft of this book was absolutely essential to my PhD thesis
We disagree on a few key points.

1. I don’t believe CFR is at all a useful metric. It’s not comparable across countries or across time. What is it capturing? If Sweden isn’t testing anyone who isn’t deathly ill of course it has a 10% CFR. If Singapore tests everyone of course it has a 0.05% CFR (both numbers from your link). Same disease, equally fatal in both places, yet you’re looking at a metric with a range of 3 orders of magnitude. If at this point those numbers haven’t started converging worldwide it’s a bad metric.

2. Of course how the disease affects families matters. The conversation isn’t about that, though. Public health decisions impact people one way or the other. People die one way or the other. The goal is to minimize deaths and suffering. This is the kind of thinking that prevents prison reform: “but what if we let someone out and they hurt someone else! Let’s just lock them up forever instead, problem solved.”

3. 1-2 deaths per day in a country of 10,000,000 is not a lot. By any measure. It will never be zero. 1-2 deaths per day is similar to their road fatalities (200-400 per year). It’s in line with their flu fatalities (500 per year).

If 1-2 daily flu and 1-2 daily road fatalities don’t represent a catastrophe, why does this?

4. 200 cases per day in a country of 10,000,000 is not a lot when they’re not trying to contain it. Like CFR though it’s not a useful metric for comparison across countries because it doesn’t factor in testing methodology. I cite this metric at all because of it’s pronounced exponential downtrend.

Factual inaccuracies in my posts preceding are my having looked at a graph wrong, or a poor graph, not bad faith.

Yes, I think it's a serious disease. Yes, I wear a mask whenever I'm outside. Yes, I think masking should be mandatory. Yes, I'll take the vaccine when it's available. I do also think there's been an awful lot of sensationalism at play.
yup, this type of "expiring money" would just lead people to store wealth elsewhere. You could argue that this has already happened with long term low interest rates. I think a big part of the continued stock market and real estate bubbles is that interest rates are so low that there's a real disincentive to store cash in the bank, so folks put their wealth into houses and stocks.

Also, since when did "saving" become "hoarding"? Saving is a very important part personal financial wellness and business investment. Our goal should not be incentivizing people to spend money as quickly as they make it.
BuckleScript (now ReScript, I guess) can still compile standard OCaml syntax.
This is a nice read and a useful, practical model. Thank you!
> Speed?

As surprising as it might sound -- not really. There's a small-but-non-trivial amount of overhead involved in calls between WASM code and the DOM API's, plus (de)serialization.

It's more of a familiarity/existing tooling thing. Same as Blazor in C# writing web apps in that. If your entire team only knows C# and you have all your existing tooling there then it could seem an appealing option.

But there's also the argument for more stringent safety with Rust compared to IE, Typescript.
At the other side of the fence we have JS/TS experts writing inscrutable one-liners by chaining 15 lodash commands.

Having tried both SQL and the approach of using a programming language + framework of the day, I prefer SQL for data manipulation. It's far easier to troubleshoot, scale, hand-over or maintain in the long run.
> A big risk here is that it's very easy for refactoring you make a codebase worse.

That seems to happen when refactorings are infrequent and random, vs. a well-groomed codebase. Of course the well-groomed codebase is a mythical creature.

The problem I see is that if refactoring isn't part of the culture, what tends to be built is a tower of cards that never gets the benefit of hindsight because with each subsequent change, the understanding of interactions decreases, and the fear of breaking something increases, leaving to very narrow cludgy changes that become impossible to maintain.

The added impetus of external schedules just exacerbates the issue until the whole codebase falls over, unless people come along who take on that risk and attempt live brain surgery.
100% Agree - I am the PO on my product. I was the original coder, I know this code better than any of the newer devs.

And yet they bring so many great ideas to the table that make the product far better than what I wrote up in a story. They make the code better, they ask great questions, they propose changes to designs and features... and we then end up with a much stronger product. The stakeholders love the results we are coming up with, and I'm thrilled with where the product is going, and the devs enjoy contributing at multiple levels and having some autonomy.
So what you're saying is... since Mozilla has cash difficulties, let's get rid of the main income source?

Or am I misunderstanding?
> Work on the bloody browser, forget about the rest.

But they did that, and now Firefox market share is almost negligible because it wasn't the default browser on mobile OS's.

For example, I'm sceptical about the potential reach of XR, but if it grows big, it is vital that Firefox plays a bigger role there, instead of everybody being reliant on apps and Chrome once again.
A Pattern for State Management in React Function Components
By way of example, I might write a dev ticket along the lines of:

Background/Goal: With a larger userbase, we would like to add a moderator role. Users with this role would be able to hide posts, but not have any other elevated privileges.

Suggested Implementation:

* Add Moderator to the UserRole enum

* Split the post hide/deletion privilege into two separate privileges

* Associate the post hide privilege with Moderator and Admin roles

* Associate the post deletion privilege with only the Admin role

But a "improve the deploy process" ticket would probably look more like:

Background/Goal: Deploys currently take fifteen minutes on average, from start to finish. We would like to cut this down if feasible.

Potential Lines of Inquiry:

* Can we build things in parallel?

* Can we add more CPU/memory to our build environment?

* What would implementing blue/green deploys look like in terms of cost and benefit?

Comparing the two, you can see that the second is a lot more abstract--and maybe this is just me being bad at ticket writing!
Social Distancing from the Stars
The second book in the Children of Time series touches on this in the path of how octopodes get hyper evolved.
Blaming employees for breakdowns in process and communication and firing them is one way to run a team. This article proposes an alternative to that.
I have seen it a few times, but only on mobile IIRC and it wasn't consistently shown across all pages where I wanted the functionality. I definitely can't seem to find it anywhere on desktop Chrome.
Look for a 16Gb RAM in order to use IDEs + Docker alltogether.

They all are 1000$
You can check Huawei and Xiaomi, they are cheaper and good quality https://www.google.com/search?q=huawei+16gb&oq=huawei+16gb&a...
From the top of my head, Firefox VPN and Pocket.
Here is another way of raising a question about colonialism:

"What is unethical about a project[colonialism] that, among other things, industrialized the colonies, established courts of Law, laid railroads, and introduced scientific education, modern medicine and parliamentary democracy there? As long as we do not address this issue properly, there are no obvious reasons to assume that the earlier generations of thinkers were wrong. Today, it is not clear how or why colonialism is an evil or from where it draws its evil strength. In other words, we lack an adequate understanding of colonialism."

From S.N. Balagangadhara's Colonialism and Colonial Consciousness: The case of modern India. https://www.academia.edu/4214196/Rethinking_Colonialism_and_...
I agree that the why is important, and it reinforces understanding of the how. I share your frustration when I see technical tutorials that show a bunch of screenshots or make you type a bunch of command line actions without explaining what it does and why you should do it.

In this case though, I chose to omit the why because other written resources on QR Codes have covered the topics extensively. Just to name a few: https://en.wikipedia.org/wiki/QR_code ; http://datagenetics.com/blog/november12013/index.html ; https://en.wikipedia.org/wiki/Error_correction_code#Interlea... ; https://en.wikipedia.org/wiki/Clock_recovery
Losses at Revolut more than triple to £106m
SQL is designed around databases. Python is designed around objects. Clojure is designed around expressions. A table is analogous to a list of objects. None of these languages is more domain-specific than any other.
js_of_ocaml and ReScript (BuckleScript) have different goals. js_of_ocaml is optimized for working with existing OCaml libraries. ReScript is optimized for working with the JS ecosystem. That's my understanding at least as someone who has only worked in native OCaml and BuckleScript, but hasn't touched js_of_ocaml.
AirBnB currently requires pictures of your state-issued ID to create an account in addition to the credit card.
... Unless they're really good at it.

I hate to admit it, but I'm a Fred. Extrinsic motivation doesn't work well for me.

Yeah, I need to make some money I guess, but I'll make some pretty hefty compromises re: pay and benefits if it means working with an interesting stack or on an interesting problem because intrinsically motivated work is far higher quality for me than extrinsically motivated work.

A common pattern in my career is that my work stands out in some way that causes me to get pulled out of the main grind--and put on some fun special project.

As long as the value you're providing by being a Fred is greater than the value of the job you were hired to do, I find that they'll find ways to keep you around.

I do feel like a Jerk sometimes because I end up getting what feels like a promotion for doing my job poorly, while those doing it well have to stay and keep doing it, but when I buckle down and keep my nose to the grindstone I end up writing shitty code and letting my team down.

If Fred is otherwise hard working, there's probably a place for him nearby.
The major threat for the web is Native Apps.

They should find/build/maintain a good alternative for that.
UK for starters.

https://en.wikipedia.org/wiki/Racial_and_Religious_Hatred_Ac...

Blasphemy laws have just been repackaged essentially under "anti hate speech" laws. They're palatable to the media and at the same time selectively-applicable which is ideal for population control.
As some have pointed out above, the donations don’t go towards the browser by the way.
I don't think this matters in the question. In regards with US tech companies banned in China, all of them are banned for violating Chinese laws. If you believe there is a major exception to this, name it.
I can see a lot of the problems being those providing the funding to Mozilla or even how we praise people or judge them successful on here.

When is the last time a bug fix rose to the top of Hacker News?

When is the last time a cool new library or project rose to the top of Hacker News?

Virtually nobody would consider a fixed browser a success and unsurprisingly, nobody wants to do that kind of unrewarded work.
Sled simulation guide (jepsen-proof engineering)
Who would want to be left holding the bag with the expired "dollars" at the end of the period? I imagine they would trade at a substantial discount from the beginning, being dollars in name only.
Google says it’s working hard to address YouTube Music complaints
Although Rust is most known for bringing safety to low-level development, it also happens to be a nice, modern programming language with things like match statements and sum types. I find myself using it frequently for things I used to do in Python, with greater productivity once a program reaches the point that I can't keep it all in my head.
All Earth's primordial gold sank. So, all the gold we find or mine came from meteorites (including dust) after solidification. Most has been dissolved in water.
Dhivya Suryadevara to Join Stripe as Chief Financial Officer
Firefox Quantum was a pretty significant investment in Firefox. It made literally zero impact on their market share decline.
CI/CD Observability: Tekton and Prometheus
Seems like something you could do manually with Tampermonkey or something similar.