Better HN
topnewbestaskshowjobs
Log inSign up

pkmays

288 karma · joined Feb 12, 2010 (16y ago) · 36 submissions

PK Mays

Texas, United States

http://www.pkmays.com/

Submissions

comment 12y ago · link · parent

http://domenic.me

Editor Domenic Denicola's website

2.

Promises guide from W3C has beautiful ECMAScript 6 programming style(w3.org ↗)

4 points · by pkmays · 12y ago · 1 comment

comment 13y ago · link · parent

Developing for the console seems really harsh.

Somewhat related, an indie company managed to get a fighting game out on PSN and XBLA. It just got an update on PS3, but it can't get updated for Xbox because the patch is bigger than 4MB. [1]

Keep in mind, these are free updates that fix bugs and stability issues, not paid DLC. Even so, patching is really, really expensive. [2]

[1] http://shoryuken.com/2013/01/08/skullgirls-xbox-360-patch-de...

[2] http://kotaku.com/5884842/wait-it-costs-40000-to-patch-a-con...

comment 14y ago · link · parent

Oddly, Windows 7 Pro does have DVD support out of the box.

comment 14y ago · link · parent

Wayland can eventually fill the role on Linux perhaps. X11 is built to run on many more operating systems.

This is my main issue with Wayland. Whence portability?

comment 14y ago · link · parent

Wayland isn't going to replace X11, it's going to be an alternative to X11.

comment 14y ago · link · parent

Not mentioned among the major features: Windows builds have finally moved to Visual Studio 2010.

comment 14y ago · link · parent

Glad to hear this. Digia has treated Qt very good.

comment 14y ago · link · parent

I'm not a fan of KDE, but I do like Qt. Qt seems to suffer from kitchen sink syndrome, but the core GUI API is well designed.

If someone did for Qt what XFCE/LXDE did for GTK+, I think it could catch on.

comment 14y ago · link · parent

Sounds about right. I think a lot of developers buy a MacBook with the intention of dual booting to Linux, but end up just sticking with OSX.

comment 14y ago · link · parent

Yes, Qt still uses moc. I leave it up to you to decide if that's a good thing or a bad thing.

comment 14y ago · link · parent

I found it very hard to read this. The whole time my brain kept getting distracted by how bad the fonts look.

comment 14y ago · link · parent

He did. From http://www2.research.att.com/~bs/bs_faq2.html:

> ...I consider it a pretty good set of rules for safety critical and performance critical code. If you do embedded systems programming, you should consider it. Caveat: I had a hand in the formulation of these rules, so you could consider me biased...

comment 14y ago · link · parent

Whoa wait, we are really supposed to replace X with something that only works on Linux? Way to give BSD guys the middle finger.

comment 14y ago · link · parent

I'm not C++ savvy, but I know from reading Google's C++ style guide that they also disable exceptions. The guide leaves it at that and doesn't say anything more about how to deal with errors. Does anyone here know how these big Google C++ codebases handle errors instead?

comment 14y ago · link · parent

I'm surprised they think developers would be interested in this. Having worked with Dell in IT, you couldn't pay me to use anything they put their name on. Dell have a bad reputation in both hardware and peopleware, and it's well deserved.

comment 14y ago · link · parent

There are some Good Parts to C99/C11, most of them adopted from Unix and Plan 9. Not surprisingly, most of the bad parts are all inventions.

Read the link to dmr's comment again. His argument wasn't so much that noalias was specified incorrectly, it was that the whole idea of adding any kind of alias specifier to the language is against the spirit of C. I agree, and apparently so did the C++ committee. If you want to write FORTRAN, write a FORTRAN spec. Leave C alone.

comment 14y ago · link · parent

Unlike ICC, MinGW's gcc.exe is not a drop in replacement for cl.exe. It's a separate compilation environment. The headers are different and often out of date compared to the Windows SDK. Microsoft extensions are not supported so it chokes on newer APIs like DirectX 11.

If you are a Mac or Linux weenie who just wants to port something over to Windows sure, no problem, use MinGW. But good luck getting any Visual Studio devs to rely on what is, for all intents and purposes, a second rate Win32 toolchain.

comment 14y ago · link · parent

Good for Microsoft. If they think something is standardized garbage then they shouldn't have to use it.

C99 and C11 look like mutants compared to C89. Too many bad design decisions made by a group of people who weren't involved with the initial standardization. They even did the very thing the guy who _invented_ the language explicitly told their predecessors in no uncertain terms not to do, and reintroduced noalias pointers into the language [1].

[1] http://www.lysator.liu.se/c/dmr-on-noalias.html

comment 14y ago · link · parent

From the Dr Dobb's link:

> The C99 standard is interesting because it was created at a time when a lot of people on the previous committee went away and did other things. And it was a smaller group that came over who were interested in a special-purpose area, and so it ended up having a lot of things that were not of general-purpose interest.

Sutter's comment seems spot on about the apparent departure of a lot of the original authors. C99 seems to have been designed by a group of people who's overriding motivation was FORTRAN envy.

Really, how many people were screaming for built-in complex types, type-generic math, or variable-length arrays? noalias even made it's way back into the language.

Take the Good Parts of C99: BCPL comments, long long, and <stdint.h>, and you've basically got MSVC's C compiler.

Good Parts of C11? Anonymous structs and unions. Plan 9 FTW.

comment 14y ago · link · parent

> What part of that process requires UTF-16? JavaScript doesn't require UTF-16; it just requires Unicode. You could use UTF-8 in your JavaScript implementation as well.

Actually, JavaScript _does_ require UTF-16. From the ES5.1 spec:

> A conforming implementation of this Standard shall interpret characters in conformance with the Unicode Standard, Version 3.0 or later and ISO/IEC 10646-1 with either UCS-2 or UTF-16 as the adopted encoding form, implementation level 3. If the adopted ISO/IEC 10646-1 subset is not otherwise specified, it is presumed to be the BMP subset, collection 300. If the adopted encoding form is not otherwise specified, it presumed to be the UTF-16 encoding form.

comment 14y ago · link · parent

Thanks. Those specific complaints from the link seemed more like quality of implementation issues of typical ECMAScript editors vs Adobe's ActionScript IDE. I can live without type inference in a dynamic language, but Visual Studio and Qt Creator have spoiled me on the other features.

comment 14y ago · link · parent

Are there really no JavaScript-capable IDEs out there that support code completion, jump to definition, re-factoring, etc? I don't see anything in the language that would preclude such features.

comment 14y ago · link · parent

Speak of the devil.

http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2012/n334...

comment 14y ago · link · parent

I bet a lot of folks under the Iron Curtain would have loved to have had access to these documents back in the day.

comment 14y ago · link · parent

Photoshop Elements is actually a totally different product. Someone who's very comfortable with the Photoshop workflow might not like Elements at all.

There actually was a Photoshop Light: Photoshop LE. I got a free copy of Photoshop 5.5 LE along with a Wacom tablet. It really was a stripped down Photoshop. Imagine someone had sprinkled #ifdef PHOTOSHOP_LE everywhere and then said "Ship it!"

It was nearly the perfect product for me. The only really annoying limitation was working with a single step of undo/redo. I taught me to be very deliberate with my brush strokes. :D

27.

NASA 1981: The Bug Heard Round the World(klabs.org ↗)

2 points · by pkmays · 14y ago · discuss

comment 14y ago · link · parent

The threads.h header comes directly from the Dinkumware Compleat C library. I would have preferred a stdthread.h with more pthread.h like struct/function naming.

comment 14y ago · link · parent

It seems to me if ANY one group of people should be allowed to add new keywords to the user namespace, it should be the standard bearers. The whole _Keyword thing is something only a committee could love.

comment 14y ago · link · parent

Reading the E4X spec, it says the XML stuff will be folded into future standards. That obviously has not come to pass. I'm guessing JSON is the reason.
12