Better HN
topnewbestaskshowjobs
Log inSign up

3eb7988a1663

3,526 karma · joined Sep 5, 2024 (2y ago) · 1,155 submissions

Submissions

comment 1y ago · link · parent

Depends on how you use pandas. Pre-polars I would do a lot of single column/series manipulation which works the same way (though heavily discouraged by polars because you lose out on optimization opportunities). There are plenty of surface level keyword API changes (merge vs join, sort_values vs sort), but you can operate polars in a very panda-esque manner which do not seem all that alien to each other.

Strictness, I understand you cannot just slap it in, more just an idle thought.

comment 1y ago · link · parent

I really do not see that much difference between polars and pandas. Under the hood, sure the machinery is different, but quite a bit of pandas code will run as-is with polars. If you want to maximize the performance + strictness, you do need to adopt the polars style, but the two are quite similar.

Which is to say, I have no real problems with the pandas API. In fact, if I could just transplant the polars strictness into pandas, that would let me keep the slightly more terse syntax.

comment 1y ago · link · parent

While I agree the speed benefit is marginal, the API is the differentiator.

Polars is a v2 of a dataframe API with a lot of thought put into offering a consistent experience. Variable names are seemingly regular across the board (eg no `sep` on this method, but `delimiter` here), no Numpy int nan baggage, and no silent data type conversions do a lot to improve the robustness of the code. That it is faster is nice, but a big shrug for my typical use cases.

The loss of the index is probably the right move - the implicit column has some subtle logic which I do not miss after switching to polars.

Source: over a decade of pandas experience. There are still a few idioms for which I do not have a good polars alternative, but nothing that is a deal breaker. The syntax is overall more verbose, but I am ok with it.

comment 1y ago · link · parent

Maybe it is my Wisconsin upbringing, but three beers an hour is not even a notable level of intake. Moving at a good clip, sure, but in no way a record setting kind of ordeal.

There are Power Hours which is a shot of beer every minute. Depending on the cleanliness of the pour, available glasses, you are looking at 5-7 beers in an hour.

comment 1y ago · link · parent

Removing trees adjacent to a house is also surprisingly expensive.

comment 1y ago · link · parent

That is the insidious question - how many parallel efforts were/are in play when xz was going down? Surely that was not the only long term plan to compromise an "unrelated" component of system security. The Jia Tan organization might have already inserted back doors into dozens of different projects by now.

comment 1y ago · link · parent

  As has been previously pointed out, the 2001 and 2012 quantum factorisation records may be easily matched with a dog trained to bark three times [33]. We verified this by taking a recently-calibrated reference dog, Scribble, depicted in Figure 6, and having him bark three times, thus simultaneously factorising both 15 and 21. This process wasn’t as simple as it first appeared because Scribble is very well behaved and almost never barks. Having him perform the quantum factorisation required having his owner play with him with a ball in order to encourage him to bark. It was a special performance just for this publication, because he understands the importance of evidence-based science.
I look forward to more dog-based science.

comment 1y ago · link · parent

Which makes me wonder why they bother with the SD card at all. What was it meant to be storing? If it is not intended to be the real storage area, why not just have it in a loop, constantly over-writing the oldest material?

comment 1y ago · link · parent

The picture looks like the camera + storage SD card were in a sealed metal tube that was untouched.

comment 1y ago · link · parent

There was enormous controversy about the readout of those studies, with multiple associated people resigning in protest. The wikipedia page on aducanumab[0] highlights some of the problems. One blurb:

  Aducanumab was approved for medical use in the United States by the Food and Drug Administration (FDA) in June 2021,[8] in a controversial decision that led to the resignation of three advisers to the FDA in the absence of evidence that the medication is effective.[9][10][11] The FDA stated that it represents a first-of-its-kind treatment approved for Alzheimer's disease and that it is the first new treatment approved for Alzheimer's since 2003.[2] Aducanumab's approval is controversial for numerous reasons including ambiguous clinical trial results regarding efficacy, the high cost of the medication and the very high rate of serious adverse events.[12][11] The FDA considers it to be a first-in-class medication.[13]
  In November 2020, a panel of outside experts for the FDA concluded that a pivotal study of aducanumab failed to show strong evidence that the medication worked, citing questionable efficacy and multiple red flags found with the data analysis.[14] There were also significant health risks associated with the medication; brain swelling or brain bleeding was found in 41% of patients enrolled in the studies.[15]...

For an industry expert who has had nothing good to say about it, I would consult some of the writings from Derek Lowe. Here is a link to when Biogen pulled the drug[1] and a blurb from Derek

  This was a debacle. The entire process (as far as I can see) did no one any good whatsoever - not Alzheimer's patients (first in line), not Biogen, not the FDA. All that talk about how the approval was a "transformational breakthough" (Biogen's PR) is, well, "inoperative" as they used to say in the Nixon administration. In fact, I would argue that the Aduhelm saga has ended up doing a lot of actual damage. It set a precedent, the "Well, they approved this, so why not that?" kind that just sits around causing trouble year after year. Biogen, for example, says that they are now devoting their energies to their second anti-amyloid antibody therapy, lecanemab (Leqembi), but sourpuss that I am, I'm not impressed with that one, either. That's because I think that it is unlikely to actually make a difference to Alzheimer's patients, their families, or their caregivers, while at the same time exposing those patients to risks that are a lot easier to quantify than the drug's possible benefits....
[0] https://en.wikipedia.org/wiki/Aducanumab [1]

comment 1y ago · link · parent

Which inspired someone to straight up offer it for free[0]. Essentially saying, "If you own the rights and have a problem with it, here is your chance to do something about it"

That being said, I am not sure why an interested party could not make their own knock-off version of the game. The game is a parody 60s James Bond with a female lead. Would anyone care if it was functionally the exact same game, but everyone was wearing a funny hat?

[0] http://nolfrevival.tk/

comment 1y ago · link · parent

How would the variable hours be used? Presumably access to the timekeeping was limited, so who even was aware of the difference so that they could modify their life to accommodate it?

comment 1y ago · link · parent

There was an interesting (hearbreaking?) piece about some of the numerous people who have spent years streaming without any viewers[0]. I suppose it is no different from any other novelist/artist/musician who never gains traction, but feels materially different when you have instant feedback that nobody cares about what you are putting into the world.

[0] https://news.ycombinator.com/item?id=17541600

comment 1y ago · link · parent

Guess that depends on how much it angers you. Within minutes of seeing that, I jumped to the web to find a workaround, because that was way too annoying to accept.

comment 1y ago · link · parent

Were the Nginx/Apache defaults bad at the time of creation? Has hardware changed? Security? Protocol versions?

Which is to say, in N years, will the Caddy defaults be full of some unfortunate decisions?

Caddy and Traefik have been around for a while now, so curious what has prevented the boring technology from essentially flipping some defaults around.

comment 1y ago · link · parent

I hate how much I lean into VSCode, but the Python interactive mode gets you a really good live coding environment. Instead of Jupyter cells, you have a regular .py file with chunks of code prefixed with a `# %%`. VSCode gives you a similar experience to a notebook, with the same controls (Run Above Cells, Restart and Run All, etc). So something like

  # %%
  import polars as pl

  # %%
  df = pl.DataFrame()
  df.shape

  # %%
  def foobar():
    return 1
Since it is a regular .py file all of your existing tooling will work with it. The one thing you lose vs a Jupyter notebook is saved output. I mostly use these .py files, but have a few .ipynb notebook files for when I want to commit the output from some important task.

comment 1y ago · link · parent

Based on the corporate IT emails I receive from time to time, it also sounds like Apple enterprise management controls are weak to non-existent. A few times a year, there is a blast sent out to not upgrade your corporate iphone/mac because of some incompatibility. In the Windows world, IT would just hold back the patch without requiring N users to do the right thing.

comment 1y ago · link · parent

  Right-click requiring two clicks to get to the options you most likely want to use (e.g. 7z unzip or opening in a specific program)
This one you can still change. It is some hidden registry tweak, but there is the capacity to always "show more options".

comment 1y ago · link · parent

Come on now, Nevada is only 110,000 square miles. This solar planet would have taken up 0.089% of the state. All for a power plant that would have to be torn up in as little as 25 years.

Ecological disaster averted.

comment 1y ago · link · parent

With zero SMRs having ever been commercially deployed in the US, that is as much a pipe-dream as a traditional nuclear plant.

comment 1y ago · link · parent

Before anyone jumps the gun and says this is a political move, this is quite likely just economics.

Peak coal was in 2007, and has been falling rapidly since. We are currently generating about 1/3 the electricity from coal in 2023 vs 2007[0].

[0] https://www.eia.gov/energyexplained/electricity/electricity-...

comment 1y ago · link · parent

It should be noted that project has no affiliation with the SQLite project. They just use the name for promotional/aspirational purposes. Which feels incredibly icky.

Also, this is a VC backed project. Everyone has to eat, but I suspect that Turso will not go out of its way to offer a Public Domain offering or 50 year support in the way that SQLite has.

comment 1y ago · link · parent

You are more optimistic than I am. Flock and friends seem something like ChatControl. Those in power who want it have unlimited patience. They will keep pushing for expanded capabilities for the day when public attention has failed. Once they win, near impossible to revoke.

comment 1y ago · link · parent

Solid take. Do modern day battleships have programmers re-writing core OS components? Hopefully in a few hundred years, we have a lot of the basics locked down so you only need people who are good in working with expertly crafted tools in the field.

There were also call-outs to the facility where the Doctor was created. Sounded like a dedicated research installation which must be full of programmers.

comment 1y ago · link · parent

Backpack Hero[0] is just a pretty knapsack problem? I assume, never played it, but that was the gist I got from the trailer.

[0] https://store.steampowered.com/app/1970580/Backpack_Hero/

comment 1y ago · link · parent

Sure, but the physics still cuts both ways. Either sun hitting the roof causes measurable heating or it does not. The temperature gradient must flow.

Sun heating in Winter = awesome. Sun heating in Summer != awesome.

I am not arguing the strength of the effect, only that you must account for all seasons.

comment 1y ago · link · parent

Well, I will at least throw in the Group Policy tweak when I have the chance. Thanks for the tip.

comment 1y ago · link · parent

Nuts. Is this still true? I just setup a Win11 Pro machine for a very non-technical person. Uninstalled OneDrive, hoping to minimize future pain when 90% of the needs are just a web browser and storing camera pictures.

(No, Linux was not an option)

comment 1y ago · link · parent

Supposedly water heaters are an amazingly good target for variable power. Water heating takes 18% of home energy use[0] and is already a well insulated storage device. Just heat it up as you are able with the day's sun.

If you are looking for a cooling solution, you could go the other way and make water chillers through a dedicated water tank. You would tie the HVAC to pipe air through a heat exchanger. Seems like all of that is well established engineering.

[0] DOE link on water heating https://www.energy.gov/energysaver/water-heating

1
232425
39