torkell: (Default)
[personal profile] torkell

Seen on a web site distributing a RTSP implementation in source code form:

How to configure and build the code on Windows

To configure the code for Windows, first unpack it on a Unix machine

The justification for this is, apparently, "it's rather hard to imagine anyone doing serious development of networking software without having any access to a Unix machine". I do have access to a unix machine, however that machine happens to be at the university, which is not where I am.

Come on, you unix fanboys need to learn that not everyone uses unix or unix-variants. Would you be happy if I distributed code that compiled on linux, but only if you first unpacked it on a windows box?

Date: 2005-08-30 04:55 pm (UTC)
From: [identity profile] ralesk.livejournal.com
Distribute your source in passworded ACE files or something that doesn’t have a unix/linux/bsd program for unpacking :P

I fucking hate people who do things like what you described c.c;

Date: 2005-08-30 06:05 pm (UTC)
From: [identity profile] pewterfish.livejournal.com
That ... makes no sense to me. Granted, the UNIX networking model may be slightly nicer (I think it's pretty sweet, but I've never touched the Windows networking API, so I can't judge). But ... what the fuck?

If it's a puzzle, I find that WinRAR can handle most archiving formats known to man, including most of the UNIX-specific ones. Your mileage may vary, obviously. Failing that, if it still interests you, shoot it my way.

Date: 2005-08-30 07:52 pm (UTC)
From: [identity profile] pewterfish.livejournal.com
Empty binaries path is ... not good, certainly.

However, UNIX line endings... :-O Oh noes! Why does it surprise you that having done their development on a linux box, they don't bother to make a trivial substitution that any reasonably clueful individual can do by tweaking a setting in their text editor? Additionally, most modern Win32 text editors will make this adjustment automatically.

Exactly why they expect you to concatenate files puzzles me, certainly. Still, the above paragraph demonstrates that you're quite capable of adjusting the script.

Remember: open source developers are not compelled to support any architecture, and those who chose to concentrate on features rather than porting and packaging may end up releasing just for the architecture on which they work. Source code that needs to be adjusted to run on your platform is something of a fact of life: I've had to tweak MacOS or Windows-only source in the past to compile and run on a linux box.

I don't normally go off at people to this kind of degree, but I can't help but notice that you're demonstrating a variant of the very attitude you're complaining about here. OS-elitism is a fact of life, and people cheer for different teams. Get over it, and move on.

Date: 2005-08-30 08:38 pm (UTC)
From: [identity profile] pewterfish.livejournal.com
Fair enough. I've experienced zealotry from many fields, and I try never to put up with it. Though that was, of course, mild (and correctly spelled, which is always nice) ;)

The line-endings thing dates all the way back to the origin of the personal computer, I'm afraid: I don't remember the details of the reason it happened that way. Annoying though, I agree. Converting them can be done in a single line of Perl (and there exist binaries of Perl for Windows, I know that much). Failing that, a decent text editor should be able to do it, as I say: TextPad comes to mind, but there are many more.

Interesting failure modes are fun, certainly. Just the other day, I opened a firefox window (my fifth, admittedly, but still) and my entire GUI black-screened. The machine recovered rather nicely to a shell prompt, but it was ... jarring. Between us, Nick and I have somewhere on the order of ten different Unices in the house, so I'm sure we can match you up with an appropriate one, if you like.

Date: 2005-08-30 09:15 pm (UTC)
From: [identity profile] pewterfish.livejournal.com
Well, personally I'm a big fan of Slackware. If you know Red Hat, you know Red Hat. If you know Slackware, you know Linux. This is because Slack doesn't include ANY fancy graphical config and so on: you're working in the guts of the system so you can see exactly what goes where.

Ubuntu is often recommended for newbies to linux, but since you've got me and Nick in house as of September, and you're not clueless on the 'internals of the comp-yoo-tar' bit, I'd personally recommend Slackware. Trial by fire, and all that.

Date: 2005-08-31 08:24 pm (UTC)
From: [identity profile] olego.livejournal.com
Hey, I'm planning (still planning) to make my puzzle run on BOTH Windows AND *nix. (Though I don't know how I'd accomplish it. :-D)

At least to me, Windows has 2 different networking modes.

The first is just like *nix, but worse: it has only a handful of FDs, it doesn't treat files and sockets the same way, etc. All these are the lowercase function names.

But then there are the CamelHump functions, which provide functionality I've never heard in Unix before. Like a function call to accept a connexion, based on the IP. (As opposed to accept(), check IP, and close().) It also provides a nice multi-threaded replacement for select().

But I agree with your frustration. Writing good code means going by standards, and not using platform-specific hacks.

January 2026

S M T W T F S
     123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 4th, 2026 01:58 am
Powered by Dreamwidth Studios