![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 8/19/2010 3:47 AM, Warp wrote:
> Kevin Wampler<wam### [at] u washington edu> wrote:
>> Is there a typical sort of punchline to jokes about Finns?
>
> Not that I know of.
>
>> The main negative stereotypes I've heard is that
>> they're untalkative surely drunks (who you additionally don't want to
>> get into a war with), but this is based on about four web comics I read
>> a year ago, so I have no idea if that's actually what the stereotype is.
>
> Well, the stereotypical Finn doesn't show emotions and always looks like
> he/she is mourning, and doesn't communicate.
>
> While that's an exaggeration, it's actually not *completely* fictitious.
> For example get a bus ride eg. in Spain and in Finland, and you'll notice
> the significant difference (in the amount of loud chatter and the average
> expression on people's faces).
>
It might have something to do with the amount of sunlight.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Darren New wrote:
> Why do Fins think Java is much better than C++?
A better question might be "why do Finland, Poland, Italy, France,
Spain, Denmark and just about every other nation in Europe have superior
programmers to England?"
Seriously, back in the days of Amiga share-ware software, *all* the
best, most innovative stuff came from foreign countries, never from England.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> A better question might be "why do Finland, Poland, Italy, France, Spain,
> Denmark and just about every other nation in Europe have superior
> programmers to England?"
Because in England everyone is too busy getting drunk and stabbing each
other :-)
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 8/19/2010 2:57 AM, Invisible wrote:
> nemesis wrote:
>
>> dnew is on business trip and invisible is invisible at the moment,
>> thus, no need for Warp to reply to any non-sense.
>
> Invisible is invisibly building a complicated graphics library...
Elaborate, please....
--
~Mike
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
nemesis <nam### [at] gmail com> wrote:
> the only 2 Finns I know have much higher steem for C and C++... (I'm talking of
> Torvalds and Warp, sure)
Torvalds hates C++ and thinks that C is a much superior language in all
possible counts. I don't think there's anything that I need to comment to
that.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible <voi### [at] dev null> wrote:
> A better question might be "why do Finland, Poland, Italy, France,
> Spain, Denmark and just about every other nation in Europe have superior
> programmers to England?"
In the 80's the UK was the largest producer of computer games in Europe.
I don't know what happened then. (I'm assuming all the good game programmers
moved to the US and Canada.)
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> Invisible is invisibly building a complicated graphics library...
>
> Elaborate, please....
Bezier splines, my friend.
You can plot them using de Casteljau's algorithm. It's really quite
delightfully simple:
deCasteljau t [p] = [[p]]
deCasteljau t ps = ps : deCasteljau t (zipWith (vlinear t) ps (tail ps))
That's the whole algorithm. However, not only can you plot a Bezier
spline, but you can also split it into two halves (which are not
necessarily of equal size):
split_at t ps =
let qss = deCasteljau t ps
in (map head qss, map last qss)
On top of that, you can transform a degree-N Bezier spline into a
degree-(N+1) Bezier spline. Each new control point is a linear
combination of two existing control points.
Now, it follows that this procedure ought to be invertable, and indeed
it is. Since we have
Hi[0] = Lo[0]
Hi[1] = (1 - 1/N) Lo[0] + 1/n Lo[1]
Hi[2] = (1 - 2/N) Lo[1] + 2/n Lo[2]
...
we can reverse the procedure with
Lo[0] = Hi[0]
Lo[1] = Lo[0] + N/1 (Hi[1] - Lo[0])
Lo[2] = Lo[1] + N/2 (Hi[2] - Lo[1])
...
Of course, not every degree-N Bezier spline can be transformed into a
degree-(N-1) spline. As far as I can tell, the acid test is whether the
last of the lower-degree control points matches the last of the
higher-degree control points. If they match, the conversion was
successful. If they don't match, the spline is not representable in the
lower degree.
In addition to all this, you can have "rational" Bezier splines, which
is where the control points are weighted. What you do is you project all
the control points into 3D space using an inverse-perspective
projection. (In other words, a perspective projecting back to 2D takes
them to their original locations.) The control point weight is the
Z-distance. Now you draw the Bezier spline in 3D, and then
perspective-project the whole thing back down to 2D again.
Of course, all the algorithms thus far deal only with /splines/. Usually
what you want is /spline patches/ - that is, a series of connected
splines. Each segment can be connected to the next either smoothly or
with a "corner". A smooth connection requires that the control points
obey certain relationships; you can write software to enforce this
automatically.
On top of all that, it's sometimes useful to have a data structure which
is guaranteed to contain a degree-N spline, so that you can enforce the
spline degree at compile-time using the type system. (For example,
PostScript can only handle *cubic* Bezier splines, and not any other
degree.) So there's some machinery for that.
In fact, this part of the code is so repetative that I actually wrote a
program to write the program. This way I can auto-generate spline types
for degrees 2 to 5 and still have the codebase stay maintainable. Plus I
can do it the least abstract way, so it's quite efficient at run-time.
I still need to go implement B-splines. (In particular, if you have a
rational B-spline with user-defined knots, what you have is NURBS.) Plus
I want to see if I can come up with a way to make a spline that actually
passes through all of the control points. Plus many kinds of curve can
be represented in more than one way, and I want to be able to convert
representations easily.
In short, my "graphics library" so far consists of data structures for
representing various kinds of curves, and manipulating them. You could
use that for graphics, but you could just as well use it for controlling
the parameters on a sound synthesizer. They're just parametric curves.
My plan, eventually, after having constructed a library that can handle
any possible representation of anything you could possibly want to work
on, is to write a series of backends that allow you to draw this stuff
as PNG, JPEG, PPM, SVG, PDF, PostScript...
It might take a while.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp wrote:
> In the 80's the UK was the largest producer of computer games in Europe.
> I don't know what happened then. (I'm assuming all the good game programmers
> moved to the US and Canada.)
According to legend, the infamous Tetris is originally of Russian origin.
(That's the only computer game I have any idea about the origins of.)
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Thu, 19 Aug 2010 10:30:06 +0100, Stephen wrote:
> On 19/08/2010 4:24 AM, Jim Henderson wrote:
>> On Thu, 19 Aug 2010 01:49:13 +0100, Stephen wrote:
>>
>>>> "The End." (Sorry, I really couldn't resist that one, I tried....)
>>>>
>>>>
>>> Groan!
>>
>> <bows> I aim to please. ;-)
>>
>>
> Dead eye Dick. :-)
LOL
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp escreveu:
> nemesis <nam### [at] gmail com> wrote:
>> the only 2 Finns I know have much higher steem for C and C++... (I'm talking of
>> Torvalds and Warp, sure)
>
> Torvalds hates C++ and thinks that C is a much superior language in all
> possible counts. I don't think there's anything that I need to comment to
> that.
", respectively"
--
a game sig: http://tinyurl.com/d3rxz9
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |