Better HN
topnewbestaskshowjobs
Log inSign up

wfunction

3,901 karma · joined Oct 15, 2012 (14y ago) · 1,547 submissions

Submissions

comment 11y ago · link · parent

> That's why the Windows security model is so silly. An administrator is not allowed to 'su' to another user without the user's password but any reasonable subset of the administrator's privileges can be used to silently cause any user to execute arbitrary code

That's like saying kernel memory protection is silly when the user is an admin because he could just as well load a driver into the system to wreak whatever havoc he wants.

Yes, he could. No, it's not silly.

1052.

Bizarre Lunar Orbits(science.nasa.gov ↗)

3 points · by wfunction · 11y ago · discuss

1053.

The Table-Maker's Dilemma(en.wikipedia.org ↗)

1 points · by wfunction · 11y ago · discuss

1054.

Numerical Solution of Differential-Algebraic Equations(reference.wolfram.com ↗)

30 points · by wfunction · 11y ago · 1 comment

comment 11y ago · link · parent

Sure, I can believe it'd affect the score, but I can't believe anyone would actually care about it. It's not like Javascript was designed for performance to begin with.

comment 11y ago · link · parent

Linked lists are only useful in very few situations and this is not one of them.

comment 11y ago · link · parent

Maybe by like 2 CPU instructions? Javascript isn't C; that level of performance is noise in JS...

comment 11y ago · link · parent

IMO all arrays should be double-ended.

comment 11y ago · link · parent

No, conflicts in LR grammars imply nothing about the ambiguity of the grammar. Only the absence of conflicts implies the grammar is unambiguous.

Remember that ambiguity only refers to whether or not there can be multiple derivations for the same string, not whether the parser action is ambiguous. For example, consider:

  S: "a" "b" "c" | A "b" "d"
  A: "a"
This LR(1) grammar has a shift/reduce conflict, but it is unambiguous.

You could even make it worse by:

  S: "a" B "c" | A B "d"
  A: "a"
  B: "b" | B "b"
in which interpreting this as an LR(k) grammar for all k < ∞ results in conflicts even though the grammar is still unambiguous.

comment 11y ago · link · parent

Er, no, they don't. Detecting ambiguities is undecidable [1] -- LALR and LR parsers don't tell you about ambiguities. They only tell you about shift and reduce conflicts. Those do not necessarily imply the existence of ambiguities.

[1] https://en.wikipedia.org/wiki/Ambiguous_grammar#Recognizing_...

comment 11y ago · link · parent

A couple questions:

1. Can it parse its input using an LR(k) grammar in time linear in its input when k > 1?

2. Is there any other parser known to be able to achieve the above in practice?

comment 11y ago · link · parent

I use a default install and I'm a techie. I just remove the bloatware first.

comment 11y ago · link · parent

Could you explain in what sense classical statistics is actually a worst-case view? i.e., can you link to a page or maybe explain yourself explicitly (i.e., using a min() operation) how classical statistics is a worst-case analysis? What scenarios is it actually worst-case with respect to?

It's always seemed to me that the differences I see, such as in ML vs. MAP, are not due to a question of worst-case versus average-case analyses, but rather no-prior-knowledge versus yes-prior-knowledge analyses. I've never seen a proof that classical statistics gives a worst-case bound.

1064.

The problem of automatic code merging (2014)(personal.psu.edu ↗)

4 points · by wfunction · 11y ago · 1 comment

comment 11y ago · link · parent

What is the latest version of Ubuntu that you consider "outdated"?

comment 11y ago · link · parent

Could you link me to 2-3 of the actual posts instead of linking me to the entire forum?

In the meantime, it seems to me you've already conceded that Linux can't get it right, so I'm glad we agree there.

comment 11y ago · link · parent

GUI "variety"? Are you joking? The very reason there exists so much "variety" is that they all suck. Windows has one GUI system and it's worked darn well for quite a long time, and will continue to do so. Linux might be able to let you make your windows do somersaults so you can show off to your friends, but it still hasn't been able to get the basics right, like focus-stealing prevention. Windows is miles ahead of Linux on GUI -- if there's one thing I can tell you for sure, it's that.

And Linux is "miles ahead of Windows for research because of its command-line interfaces"? Really? Since when are 25-year-old command-line shells research products? Not to mention stuff like http://mywiki.wooledge.org/BashPitfalls

As for package management, when it works it works, but sometimes I wish it could burn in hell. I can't tell you how many times I've run into problems getting packages to work because their dependencies were either (1) no longer available ("sorry! our servers changed, your version of Linux is outdated"), (2) only available in source code form (but good luck compiling it!), or (3) not available for my version ("sorry, this version is too new for your OS"), among other things. Distributing your dependencies along with your application might not be sound engineering practice, but it sure as hell can make things actually work out of the box so you can focus on what you actually want to do.

comment 11y ago · link · parent

Terrible idea, terrible implementation, doesn't solve any actual problems...

comment 11y ago · link · parent

> The Windows 7-style Start Menu is modal too in the sense that you can't interact with the desktop at the same time you are interacting with the Start Menu.

Huh? If you define it that way then everything is modal because you can only ever interact with one window at a given time (one mouse, one keyboard, etc.)

comment 11y ago · link · parent

Or you can look at it another way: I can comfortably fit more on my 1600x900 monitor with Classic Shell's start menu than you would on you 2560x1440 LCD with the Windows 8 start screen.

In other words, it's both modal and it wastes real screen estate.

comment 11y ago · link · parent

No, it was terrible, unless you installed a classic shell.

comment 11y ago · link · parent

I actually had no idea, sorry.

1073.

NP-complete Problems and Physical Reality (2005)(arxiv.org ↗)

94 points · by wfunction · 11y ago · 16 comments

comment 11y ago · link · parent

Oops, I didn't mean to link to that downvoted answer...

1075.

Cycles in family tree software(stackoverflow.com ↗)

1 points · by wfunction · 11y ago · 3 comments

comment 11y ago · link · parent

Gotcha, thanks!
1
353637
52