Better HN
topnewbestaskshowjobs
Log inSign up

telios

72 karma · joined Mar 9, 2018 (8y ago) · 32 submissions

Submissions

comment 10mo ago · link · parent

Deadlock is in active development, so... I think so?

comment 1y ago · link · parent

I thought NATS was a project under the CNCF, with the trademarks being transferred to the Linux Foundation, which is why they couldn't relicense NATS, and why they can't relicense it in the future.

comment 2y ago · link · parent

That is what the article claims, but... I see it as left-aligned. Firefox 129.0.1 on MacOS.

comment 2y ago · link · parent

I'm not sure that's stopped them; it would be trivial for them to find some reason, as long as it leads to the conclusion they want.

comment 2y ago · link · parent

Largely in part due to regulatory capture; it is not necessarily innate of a government to cause this. Maybe restrictions on how corporations are able to influence governments to act against their constituency might solve this problem, rather than giving corporations carte blanche to do anything...

comment 2y ago · link · parent

Very rarely do you need to pass around a lifetime-bound struct or enum that isn't _also_ meant to be temporary. (One database pool has database connections lifetime bound, for example, but the pool still owns the connection.) When I do, I generally eat the cost and put it behind a Rc/Arc, where cloning is cheap.

It is 'borrowing' because you don't own it, not because you don't want to clone/copy it. Sometimes it is cheaper to borrow than it is to clone/copy; sometimes it is not.

comment 2y ago · link · parent

But the commits will still be there even if the refs aren't, afaik? GitHub doesn't run gc that often.

comment 3y ago · link · parent

A dry bar lacks water, not ethanol, and dry cleaning still uses liquids, so I'd argue even the colloquial definition is water.

comment 3y ago · link · parent

The reason it works is because they've done the research to make it work. It isn't a coincidence DAUs increase. I think it is important to recognize that it can impact you, and take steps to account for that, even if - or especially if - you don't want it to. You are not immune to propaganda, and all that.

comment 3y ago · link · parent

For reference, the terminology they use for their API is "guilds." But since most other services in the space used the term "servers" (e.g. TeamSpeak and Mumble, where they were actual distinct servers), I can see why the UI doesn't say guilds.

comment 3y ago · link · parent

The post makes mention of B-tree de-duplication that is present in PostgreSQL 13, but not 12, the version they're using; at the same time, they're noting that the vast majority of values in some of their foreign key indexes are NULL.

I have to wonder if B-tree de-duplication would have helped with that particular case? The PostgreSQL 13 documentation seems to imply it, as far as I can tell[0] (under 63.4.2):

> B-Tree deduplication is just as effective with “duplicates” that contain a NULL value, even though NULL values are never equal to each other according to the = member of any B-Tree operator class.

I don't think it would be as effective as a partial index as applied in the post, I'm just curious.

[0]: https://www.postgresql.org/docs/13/btree-implementation.html

comment 3y ago · link · parent

I don't quite follow the algorithm here, but I'm not sure the `gensym` Rust implementation works as expected. `RefCell::clone` does not return a copy of the reference; it returns a new `RefCell` with the current `RefCell`'s value, resulting in duplicate IDs. However, a `RefCell` isn't even necessary here, since a `Cell` would do just fine - and you'd pass around a reference to that `Cell` instead of cloning it.

It does feel like the code was ported as-is to Rust, and only adjusted slightly to compile; there are going to be pain points as a result of this process. I suspect this is the source of some of the author's complaints, especially given:

> Although it provides us with a greater sense of how the code is executing, it brings very little value to the algorithm itself.

Rust is, in general, for people who find value in having that information; it is okay to not want to have to worry about ownership, borrowing, safety, etc., but it seems a bit odd to complain about this when that's what Rust is for? If you want to focus on just the algorithm, and not how it's executing, then OCaml is definitely a valid choice.

However, the point about GADTs - can Rust's recently-stabilized GATs not work in the same way? Though I will admit that Rust's GATs don't seem nearly as powerful as OCaml's GADTs in this regard.

comment 3y ago · link · parent

Something tangentially related, but something I'm unaware of - if I do run into an ICE on nightly, what is the current process for reporting that? I've run into one or two before (and I've generally assumed it was me doing something dumb with the environment, and I couldn't replicate it), but I wouldn't mind trying to report them in the future.

comment 3y ago · link · parent

I've used diesel async for personal projects, and while it does work seamlessly with diesel at times, there are some rough edges - I ran into an odd issue where the order of imports from the base diesel package and diesel async mattered, and it would compile with one above the other, but not the other way around.

comment 3y ago · link · parent

Now, I'm not a lawyer, so this isn't legal advice, but...

A derivative work is not fair use. If you end up with a significant portion of another person's program in yours, (such that a substantial portion of your program is in some way related to their program), that will likely be a derivative work - but the definition of a derivative work depends on your jurisdiction and use-case. If you're unlawfully using the source material to produce a derivative work, you cannot copyright that derivative work under 17 U.S.C. § 103(a), and under the same section, you can only copyright your modifications, not the original.

It would be hard to argue fair use in this case; fair use only really applies for parodies/criticism, reporting, and scholarly works - and generally that's an affirmative defense, rather than an express or implied right you have.

Honestly, Copilot is difficult because Copilot can't be the author of the code; the person who used Copilot is the "author" of the code, and I think they'd be the ones liable for copyright infringement if copyrighted content ends up in their code.

To argue someone performed copyright infringement, all you need is to prove (1) a valid copyright exists; (2) that the person had access to the work; (3) the person had the opportunity to steal the work; and (4) that protected elements of the work had been copied (afaik generally under a "substantially similar" standard). Copilot offers an easy way to check both (2) and (3) - a copyright holder could argue that people had access to their code through Copilot, and that Copilot offered an opportunity to steal the work.

comment 3y ago · link · parent

BlurHash kind of does, but also doesn't, as I believe the canvas image API respects the colorspace of the loaded image; you can see this by generating a blurhash from a (non-sRGB) image and comparing it between the browser and server implementations.

comment 3y ago · link · parent

Oddly, it looks like colorspace issues, as I've had these issues intermittently with BlurHash.

comment 3y ago · link · parent

The research article is located here: <https://www.pnas.org/doi/full/10.1073/pnas.2101084119>; if you're interested in what "likely" means in this context, it may be beneficial to read through the article. My understanding is that the "likely" comes from it being an estimate using models, as the research article states.

> Substituting our empirically derived domestic emissions for those modeled in the RFS RIA would raise ethanol’s projected life cycle GHG emissions for 2022 to 115.7 g CO2e MJ−1—a value 24% above baseline gasoline (93.1 g CO2e MJ−1). The RIA estimate, however, includes improvements in feedstock and ethanol production efficiency that were projected to occur by 2022, such that the GHG intensity of ethanol produced at earlier time periods and over the life of the RFS to date is likely much higher [...].

My understanding is that they took the model used in the RFS RIA (when the RFS was first introduced), and plugged in what they've seen over the past few years to that model. Take that with what you will.

> And we're to assume that, without the production of fuel ethanol, the same land wouldn't be tilled and used for other crops?

With the increase in demand for corn for fuel usage, more fields are needed to plant the corn. Because the corn is for fuel, not food, food wouldn't have been planted in place of the corn had there not been fuel demand.

comment 3y ago · link · parent

> We know that moving `Arc<Db>` will not change the location of the `Db` object, but there is no way to communicate this information to rustc.

There is! `std::pin`[0] does just this (and `Arc<T>` even implements `Unpin`, so the overall struct can be `Unpin` if everything else is `Unpin`). The page even includes a self-referential struct example, though it does use `unsafe`.

[0]: https://doc.rust-lang.org/std/pin/index.html

comment 4y ago · link · parent

I created my own web framework (<https://docs.rs/under/latest/under/>) to address some of my own perceived issues with a lot of current rust web frameworks - typing issues being one of them. Personally, I don't like the idea of endpoints requiring `#[handler]` or other "magic" derives, or guards - I wanted something with an endpoint that takes a request, and returns a result with a response. I'm still working on it, though.

comment 4y ago · link · parent

Are you sure this is the same code that triggers the vulnerability? Is the double `update` in the post itself unimportant (i.e., first updating with a 1-byte string, then the 4,294,967,295-byte string)? As I don't think this does that.

comment 4y ago · link · parent

I don't think that's what they're claiming at all. I think what they're claiming is that it's far easier for individuals to be corrupt if their CEO is similarly corrupt, which is a completely different claim.

comment 4y ago · link · parent

As far as I can tell, this can't actually work, because the return type of `fn next(&'a mut self)` should actually live for some lifetime `'b` that is shorter than `'a`, instead of at least as long as `'a`; mostly because `next` borrows `self` mutably.

comment 5y ago · link · parent

Because filing that counter-notice requires you to provide personal information, in case the person who filed the original DMCA wants to serve you with a legal notice.

From https://www.copyright.gov/512/:

> [...] To be effective, a counter-notice must contain substantially the following information:

> (iv) the user’s name, address, and telephone number, and a statement that the subscriber consents to the jurisdiction of Federal District Court for the judicial district in which the address is located, or if the subscriber’s address is outside of the United States, for any judicial district in which the service provider may be found, and that the subscriber will accept service of process from the person who provided notification under subsection (c)(1)(C) or an agent of such person.

comment 6y ago · link · parent

> I don't think a general non-persecution right exists.

Yes, and no; one can be criticized for membership of a social group, but when people take action against the social group, I believe that can start to step into the territory of hate crimes, but I don't know if I'd consider that implying a right.

> The key point is spofity has a right to offer Joe money to use their platforms. Employees who disagree based on politics and threaten to quit working is new. If the company decides to replace them I don't believe they are in a legal position to strike.

This, I agree with. My original post was about the morals of the move, both on Spotify's part, and the Employees' part, but I have very little doubt about the legal aspect of it.

Spotify can offer Joe Rogan money. The employees can protest this. Spotify can perform editorial control. The question is, should they?

comment 6y ago · link · parent

Whether or not Spotify is a downgrade is not the point here; the point is that Joe Rogan has a platform that allows him to propagate his message to the mass, and that Spotify has a role in that. That is all. The same could be said if he was uploading videos to YouTube, or hosting a website. At some point, some company helped him disseminate the message he wanted to spread - in the case of hosting a website, for example, a hosting provider, or a domain name service, or an ISP. I think it's nonsensical and potentially dangerous to say an ISP is responsible for what Joe Rogan has said, but on the other end of the spectrum, YouTube or Spotify has to do some sort of filtering on the content they help disseminate. How should they decide, then?

The problem with the latter part of your comment is that it assumes that everyone lives on separate islands, and that what one person does has no impact on the other people around them. It does. It's alright to say that we shouldn't dictate peoples lives or businesses, but there's a point that that breaks down - if we can't dictate people's lives, why do we jail people?

comment 6y ago · link · parent

I can somewhat understand the point of the employees here, but ultimately, I think it's a symptom of a larger problem - of easy propagation misinformation, with very little oversight. When someone makes a veritably false claim, like "they've arrested left-wing people for lighting those forest fires," it is incredibly difficult to retract that statement; and even now, retracting such statements doesn't change the impact the original statement had. People are still going to believe the original statement, regardless of its truth, or they won't see the correction - especially when, in this case, the original audio was not corrected, and the apology issued separately. The original could remain unchallenged in the original audio, and someone who doesn't know the context or follow the content creator may not know that the claim was false - assuming good faith. Or, the clip could be pulled out of context, with no apology or correction, to tout that statement, to push an agenda. So now, even with a veritably false claim, you can potentially demonize the "left-wing people" intentionally or not - and I would argue that the original intention does not matter.

Joe Rogan has been given a platform, and he needs to use it responsibly. I'm still on the fence over whether or not Spotify should enforce that he uses the platform responsibly. When do you draw the line? At what point does his right to use Spotify as a platform outweigh the consequences of using the platform irresponsibly, potentially - or indirectly - causing harm? Inviting guests that promote transphobic onto his platform seems innocent enough, but transphobia is a major issue contesting the country, even ignoring veritably false claims being made about transpeople, and people have died over this conflict. If the platform is used irresponsibly, and veritably false information is propagated by the guest on his platform, is Joe Rogan responsible for that? What if that misinformation is what causes someone to commit a crime against transpeople? At what point should Joe Rogan, the one who promoted misinformation on a platform he controls, and that many people listen to, be held responsible for the consequences of what (and how) he disseminates to the people? Does his right to say false things outweigh the right of others to live without fear or persecution?

I have yet to come up with an answer, because I don't know what the best solution is yet.

comment 8y ago · link · parent

AtomicUsize is stable!
12