Better HN
topnewbestaskshowjobs
Log inSign up

wfunction

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

Submissions

comment 13y ago · link · parent

> What shall we call WINE then?

tl;dr: compatibility layer

comment 13y ago · link · parent

> A scalable variation of BSD socket API is supported by every major OS with a sole exception of Windows

It's funny, you mention "epoll, signalfd, timerfd" as an example of a portable API, and then when I point out they're Linux APIs, you suddenly start talking about "a scalable variation" of the BSD sockets API. As for your "scalable variation of BSD sockets API", why don't you tell us the name so we know what you're referring to? Are you talking about Kqueue for example, or something else?

> an abstraction that is both simpler

I/O completion ports are just read-write queues... you ReadFile(), and when it's done, an item goes into the queue. (You can insert your own tasks into the queue, too, if you want.) Now just pop off the next item in the queue and off goes your thread. What part of that was so complex compared to your portable API (which for some reason you didn't feel was appropriate to mention the name of)?

> and more universal

Can't reply to it without knowing what "scalable variation" you're referring to, and why you didn't actually mention it as an example of portability when you were actually talking about the subject. Is portability actually a concern for you or no? (If it is, why did you bring up non-portable examples?!)

comment 13y ago · link · parent

> The problem with Windows is that there isn't any such super-select, unlike on Linux (see epoll, signalfd, timerfd...)

> I can't really use IOCP, because I need keep things reasonably portable

LOL!

You outright dismiss the solution because it isn't "portable". What does "portable" mean here? Portable in a particular platform?!

Portable between what exactly? IOCP has been there since Windows NT 3.51 -- it's "portable" between the Windows-es.

Your epoll, signalfd, timerfd, etc. are Linux functions They're "portable" between the Linux-es.

i.e. The "portable" solutions you like are just as non-portable as the "non-portable" solutions you outright dismiss, making Microsoft's Windows designers look like idiots.

You're never going to find a solution while considering the Linux platform to be the "portable platform" and Windows to be the weird kid on the block.

Sadly, you're not the only person who thinks like this.

comment 13y ago · link · parent

> poll and select

That sounds like it's basically the same thing as Windows (GetMessage or MsgWaitForMultipleObjectsEx anyone?)... only that now you don't have the ability to use SendMessage, and need to rely exclusively on PostMessage instead.

Is that correct?

comment 13y ago · link · parent

> undocumented APIs

"undocumented APIs" != "a magic combination of function arguments"

Any function that's not documented can be called an undocumented API, any program has them -- Linux, Windows, whatever.

But you were talking about the argument combinations being undefined, not the functions themselves. What are some examples of that?

comment 13y ago · link · parent

> the issues with user mode callbacks too.

Genuine question (because I really don't know) -- how do Linux GUI frameworks work without kernel-mode callbacks? What do they use instead, when they need to send messages to other windows?

comment 13y ago · link · parent

> Powershell feels like it was designed by geniuses and implemented by interns.

As an intern I find this slightly offensive. ;)

comment 13y ago · link · parent

> not just MSSQL team that can peek at the source code and cook up a magic combination of function arguments that does not return undocumented

Don't leave us hanging... what examples are you referring to?

comment 13y ago · link · parent

At some point Microsoft might want to consider expanding its kernel team into Silicon Valley.

comment 13y ago · link · parent

> they're a way to prevent others from trying.

What exactly was I trying to prevent others from trying?

comment 13y ago · link · parent

I never said without a diagnosis.

comment 13y ago · link · parent

> > Doctors order tests to help them choose the right treatments. > No they don't, except in very rare cases. Doctors order tests to make a diagnosis. The treatment follows from that.

What I said didn't contract what you said. If test => diagnosis => treatment then test => treatment.

comment 13y ago · link · parent

Claiming something is "too hard" never got anyone anywhere.

comment 13y ago · link · parent

Doctors order tests to help them choose the right treatments.

If they have absolutely no idea what the possibilities are then they wouldn't be ordering tests anyway.

comment 13y ago · link · parent

need it != it would be useful

comment 13y ago · link · parent

> So there's no way to tell the patient beforehand that their care will cost x amount.

I call B.S. -- unless you're calling B.S. on the data.

There's something called "estimation" which comes in very handy when you don't know something with certainty.

If you have absolutely no idea, then you just guess the average cost for each patient with a similar background, with a disclaimer that it may not be accurate.

Problem solved, unless you don't want to do it because then it'll prevent you from ramping up the prices unnecessarily later.

comment 13y ago · link · parent

http://www.nytimes.com/2012/06/01/world/middleeast/obama-ord...

comment 13y ago · link · parent

Pot calls the kettle black?

comment 13y ago · link · parent

I know, but it's not going to be as easy to fix if it happens on a massive scale, i.e. when everyone's using it.

comment 13y ago · link · parent

The terrifying part of his job is that almost all of the current Bitcoin services now use the same software, so that "any change to the core code has potentially disastrous impact. If everybody rolls out a new version and there's some problem with it, the whole Bitcoin payment network could grind to a halt."

This is the part that has always scared me.

comment 13y ago · link · parent

> thinking cheat sheets are only for interviews is limited

I never even used the word "interview", are you sure you're responding to the correct comment?

comment 13y ago · link · parent

If you need this, you're doing yourself a disservice by looking at it.

Go back and learn the concepts so that you're not memorizing anything.

comment 13y ago · link · parent

I know, I didn't mean to imply sharpness is the only factor. It's just one of several important factors.

But I couldn't care less about the font being deformed, as long as it looked better than it used to. The fact that you seem to care so much about the deformation into a different font seems to imply to me that your goal is to preserve the original font, rather than to make it look nice on the screen.

If you have the time, would you mind taking the pictures in the comment below and making a smaller bitmap that shows exactly which character(s) you think are not kerned well, and which Linux or Mac kerns better? I'm really curious what I'm not seeing.

comment 13y ago · link · parent

> Quantom computer languages literally do this

Quantum computers also make the sun rise every morning.

I can claim anything about what they do, because they don't exist.

comment 13y ago · link · parent

Higher quality... in what way? Resolution, or something else?

comment 13y ago · link · parent

> You might also think colleges would be expanding their departments proportionately, since even with higher numbers of students, the universities aren’t anywhere close to filling industry demand.

Why is that a bad thing? If high demand was to cause a proportionately high supply, then in 15 years we'd find ourselves having too many coders looking for a job.

comment 13y ago · link · parent

> legibility

Seriously? I could agree that it may not fully represent the intended font, but the entire point is that it's more legible when it sacrifices that, and I find it hard to believe that you find Windows's text to be less legible than Mac's/Ubuntu's.

i.e. I think Windows sacrifices the fontmaker's intent in order to please the reader, who couldn't care less about the fontmaker's intentions rather than the actual output (unless the reader is the fontmaker himself).

Do you really think it's failing in that too?

comment 13y ago · link · parent

> provide a diminished education for students in public universities

That sentence makes no sense.

UC Berkeley produces edX content, and it's a public university.

1
474849
52