News for hackers. Stuff that matters.

hagreet

Can somebody explain what the optimizations are that this enables?

Of course you can optimize away the checks but that doesn't count in my world because people put in these checks to make sure there is no overflow and optimizing them away is just wrong.

But I am sure there are other interesting optimizations that this allows and since I am generally against UB I am curious what those are.

Wait you cannot hide posts without logging in? What?
Re:Homebrew Website Club on Monday September 18, 2023 @04:59AM (#37553853)
I'm confused by that cookie banner. Is it a joke or not? What do you mean by "Do you consent to sharing cookies?" are sharing cookies a special kind of cookie or do did you just mean storing cookies?
Re:MDN Playground on Friday July 21, 2023 @05:06AM (#36811660)
Sorry, if that wasn't clear but I think MDN is not only reference documentation. I agree, for the reference part the AI shouldn't do more than trying to point you to the right parts of the text. But for learning things, nice explanations, even if sometimes slightly off, can be a lot better to digest than reference documentation.

I'm not saying it's great yet, but there is potential for having something that can hand-wave away some details like a human would when explaining something to a beginner.

Re:MDN Playground on Thursday July 20, 2023 @08:27AM (#36799521)
Please no. The site is an important resource for people learning JS and other web technologies and AI is great at explaining code snippets which would otherwise be follow-up look-ups and at explaining what the often very dense MDN content means. And AI is actually really good at generating code as well, you just have to review it like it was written by a junior dev.

I think most of the hate for current AI tools comes from the fact that people expect the computer from Star Trek which always provides perfect answers.

Edit: So yes, it needs to be made super obvious to users that it might give you wrong answers.

Re:Show HN: Instantly pass your passwords securely on Tuesday November 12, 2019 @10:55AM (#21515050)
I think the most important point is, that this solution requires a way to securely transmit the generated link. As described in another comment by @ryandvm this has two advantages over transmitting the password directly: 1. It won't show up in logs or be otherwise accidentally stored. 2. If the link expires after a single use you get security in the covert model. However, this comes with problems because some tools like virus scanners automatically hit links.
Re:Show HN: Instantly pass your passwords securely on Tuesday November 12, 2019 @10:48AM (#21514985)
I don't understand how this relates to the original post. ShareLock is not end-to-end encrypted.
Re:Show HN: Instantly pass your passwords securely on Tuesday November 12, 2019 @08:16AM (#21513791)
I don't understand the threat model here. The link needs almost the same kind of protection as the original password. The only difference is, that the link expires.

So how do you transmit those links securely and why didn't you use that for your passwords in the first place?

Re:You can fool some of the people, all of the time on Thursday November 07, 2019 @07:28AM (#21472556)
Why does that help?
Re:Is Inequality Inevitable? on Thursday November 07, 2019 @07:27AM (#21472548)
Do people not mind the paywall or do you just not get it?
Re:You can fool some of the people, all of the time on Thursday November 07, 2019 @06:51AM (#21472332)
This article is behind a paywall.
Re:When XML Beats JSON: UI Layouts on Wednesday October 30, 2019 @09:27AM (#21397423)
1. Why is parsing a tree which is encoded in JSON easier? 2. Why does it matter if an element is in an attribute or in child elements. You need some kind of schema anyway, right?
TLDR: not an apology
Re:Pure Bash Bible on Thursday September 19, 2019 @02:50AM (#21013912)
Yeah, I also don't look at things like

``` trim_string() { # Usage: trim_string " example string " : "${1#"${1%%[![:space:]]}"}" : "${_%"${_##[![:space:]]}"}" printf '%s\n' "$_" } ```

and think: "I should use bash more".

Bash is nice for making simple things simple but for complicated things it's just shitty. I used to think that this is due to the complicated quoting rules which make the simple things simple but tcl does a much better job at that.

In either case I prefer the clean rules of a Python or Perl for anything larger.

So my domain will become more and more expensive? Great.
So, if there is a name that I would like I basically have to announce it to the world and then enter into a bidding war with people speculating?
When I shuffle a deck of cards and put it down on the table the top card doesn't change anymore. Yet anybody will consider the first card to be random.

In practice randomness is about lack of knowledge not about actual randomness or processes.

(Edit: Sorry, but this clickbait title redefining randomness as something other than what everybody understands it to be annoyed me.)

If this catches on there will be exciting new security problems.
After reading through the comments I would like to know the following: Why are there no priorities?

I can't figure it out from the answers. I think with root privileges it should just be possible to say "GUI has higher priority" etc... Then when there is a memory issue you kill some low-priority processes to get the memory back.

But whatever any sane person considers part of the operating system because it is the bare-minimum of what is required to do stuff (filesystem, gui, ...) needs to have priority and always be fast. This can be defined by the distribution using the startup privileges.

So, why is this so difficult?

my mom told me about clickbait titles - this is what happened next
Re:Show HN: Web pages stored entirely in the URL on Sunday June 30, 2019 @09:59AM (#20318218)
Is there a way to make this clickable? At least in FF Android it isn't.
Re:Show HN: Web pages stored entirely in the URL on Sunday June 30, 2019 @09:56AM (#20318203)
so instead of adressing the content you are sending the content directly. brilliant. who could come up with such an amazing idea...

seriously, though: this has some marginal advantages compared to just sending the sites such as being supported as clickable in almost every program and being allowed in size restricted posts which allow arbitrarily long links

Re:Why brilliant people lose their touch on Friday June 21, 2019 @05:13PM (#20246344)
Regression to the mean.
Re:Show HN: Browser Extension to Refine the HN Experience on Thursday June 13, 2019 @10:54AM (#20175453)
Could somebody please explain the selection of required permissions to me? For example, why does it need: "Access browsing history", "Access browser tabs"?
This is clearly wrong. If usability suffers due to tracking implementing this removes a disadvantage of tracking; so it supports tracking. If usability doesn't suffer it still provides a cleaner and simpler way to implement the tracking and also supports tracking.

The only legitimate reason to add this is that if some browsers have it and some don't usability will be better on some browsers than on others.

This is a prisoner's dilemma. Or was.

Re:Audiophiles in Japan Are Installing Their Own Power Poles on Saturday December 29, 2018 @05:08AM (#18782921)
My only question is why BS like this has 169 points on HN.
Re:Artificial Intelligence Creates Realistic Pictures of People on Wednesday December 26, 2018 @10:44AM (#18762659)
Startup idea: Suspect sketches using GANs
Re:Show HN: Millow – Stay connected with your inner circle on Monday November 05, 2018 @02:04PM (#18384947)
I could be wrong but it seems like a simple habit tracker like habitloop would do.
Excuses.
I like this but the html.brow.sh/... service needs some sort of MitM warning.

Older »