Author Topic: The buddhabrot (challenging ?)  (Read 26077 times)

0 Members and 1 Guest are viewing this topic.

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #60 on: January 14, 2015, 12:52:11 PM »
It's wise not to put your head in the sand when Linux is a better choice. I have yet to find one solution to any problem I'm faced with.

Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #61 on: January 14, 2015, 01:43:42 PM »
Hi Rob,

This one seems to produce a much, much better structured and completely filled-out grid -- looks cool! :) I wish there were some algo to have it smoothly colored or perhaps even turned into a surface rather than point cloud. A "real" 3D model might look really awesome.

1. The Abs() et al. problem in a tight loop is the function overhead, i.e. the time it takes to push the arguments, perform the actual call, and then fetch the return value clearing the arguments off the call stack in order to balance it. The time penalty accumulated over thousands of calls may be much heavier than the task that the function actually performs. You can see it yourself in x*x>y versus Abs(x)>y, even if floating-point multiplication and comparison aren't as speedy as their integer counterparts.

In C/C++/compatibles, you can define Abs() and other critical expressions as a preprocessor macro or inline function that would expand to a very fast in-place x < -y || x > +y though they would still look like function calls in the source script. But you can't do the same in most contemporary BASICs.

2. dynload is what *nix geeks would name the process of loading a dynamically linked library (.dll in Windows, .so in Linux, and .dylib in OSX) and calling functions from it. Such calls are executed exactly as fast as if the code were statically linked into the executable proper.

The difference in execution speed may be due to how well (or rather bad) GCC is optimized for Windows. The chase for being a Jack-of-all-trades for all known platforms often leads GCC to not being optimized well enough for anything other than PC Linux, and some of its optimizations for minor OSes in some of its builds in the past were known to break its compatibility with the best operating system in the world -- MS Windows -- very badly.

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #62 on: January 14, 2015, 02:16:29 PM »
I don't think you need to go much pass the Windows message pump to realize which is a better OS. I bitch about PHP but I'm typing this using it.

Aurel

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #63 on: January 14, 2015, 02:36:22 PM »
Quote
Windows message pump to realize which is a better OS
ha ha ha...
when we can expect message pump on linux ;D
never... ;)
no linux have x-server for this thing

JRS

  • Guest

Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #65 on: January 14, 2015, 03:19:23 PM »
Quote from: Pediwikia
The "heart" of most Win32 applications is the WinMain function, which calls GetMessage(), in a loop. GetMessage blocks until a message, or "event", is received.

This is downright BS that must've been written by some evil-minded red-eyed linuxoid. The MS Windows main message loop uses a non-blocking PeekMessage(PM_REMOVE) call that returns immediately if there are currently no more messages pending in the message queue. Windows was designed as a versatile graphics environment from the very start, and that's why its "events" include literally hundreds of various window messages. OTOH Linux was console oriented originally, so its "events" and "signals" palette appears rather limited for rock-solid and reliable implementations of GUI infrastructure on top of its TTI-based kernel. Some work has been done to improve the situation in recent years but GUI still remains an "ugly duckling" in the Linux world of today.

Aurel

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #66 on: January 14, 2015, 03:21:20 PM »
Thanks Mike for replay ;)

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #67 on: January 14, 2015, 04:01:21 PM »
I'm guessing that Linux's poor task manager has nothing to do with Wine running Windows applications so well. Why does almost every web server and multi-core mesh super computer run Linux? We must all be stupid and bought into the FREE thing must be the answer.

Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #68 on: January 14, 2015, 04:54:28 PM »
That's probably because Windows is an all-purpose OS while Linux remains mostly a specific-task oriented and free instrument (much more importantly like in "free beer" than in "free speech"). You know there will always be someone taking advantage of something behind everyone else's back. :)

Linux achievements like Android or X Window still remain a deviation from the mainstream. Hopefully they will be able to proudly compete with genuine graphics OSes with time but sorry, not at this very moment.

Nonetheless I am glad I've found myself a nice niche Linux -- elementaryOS -- that's going to become a good starting point for me to learn from. But these are the developments of today rather than yesterday or the day before that, and I sincerely hope that eOS' dev team isn't going to fall apart soon like hundreds of Linux dev teams before them, just because they need to eat every day and feed their families too rather than protest for abstract freedoms while still living in slums. Humanity has been so far unable to invent anything better than money as a criterion and reward for one's dedicated work and talent. Everything else is but Communistic demagogy.

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #69 on: January 14, 2015, 05:33:54 PM »
Everyone should live with what they feel most comfortable with. I use both Linux and Windows regularly.  I shouldn't have to defend what one I prefer. Personally, I alway felt like I was bleeding using Windows. (anti-virus, 32 bit centric, fixes that come too late, ...)





Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #70 on: January 14, 2015, 06:00:02 PM »
Everyone should live with what they feel most comfortable with.

No John,

We, the Windozers, will not let you linuxoids keep on living in anarchy, slum, and filth. You will be cared for, forcefully nursed and nourished, bathed and combed, decently dressed, employed, and put to lead a happy life with your wives and children for the benefit of society.

The mere presence of Windows on the market is Linux' strongest insentive to develop and keep struggling on. No Windows would mean no competition, no insentive, prompt stagnation, and eventual death. Linux is like Windows' prodigal son whose comeback is foregone once the rumbling of hunger in his stomack reaches a threshold level.

The above is said in good positive humor and doesn't need to be responded to. :)



(Just FYI: In Russian, Windows is feminine while Linux is masculine with a somewhat teen-ish shade of attitude.) :D
« Last Edit: January 14, 2015, 06:17:44 PM by Mike Lobanovsky »

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #71 on: January 14, 2015, 07:11:32 PM »
Quote
Just FYI: In Russian, Windows is feminine while Linux is masculine with a somewhat teen-ish shade of attitude.

I was just about to comment that I was surprised at your attitude toward Linux when your side of the pond is more Linux centric. The US market is still in a mess with Microsoft oscillations and consumer desire for platform neutrality. If you're computing to make a living, love what the customer loves and maximize on the relationship. My open source efforts (free time) reflect how I feel and where I would like to see the industry go.

Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #72 on: January 14, 2015, 07:47:03 PM »
The US market is still in a mess with Microsoft oscillations and consumer desire for platform neutrality.

Below is a glimpse of the world's market share among desktop operating systems in the year 2014. Consumers are definitively neglecting Linux as a desktop OS worth mentioning; its pie as a separate entity is non-existent. That's where things really are next time you talk on behalf of the customers. Joking aside, I suppose the matter is closed here and now.

.

JRS

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #73 on: January 14, 2015, 07:55:53 PM »
I would like to see the same pie chart incorporating ALL computing methods used on a daily basis. The desktop isn't king any more and laptops are slowly losing out to tablets for the more casual user.


Mike Lobanovsky

  • Guest
Re: The buddhabrot (challenging ?)
« Reply #74 on: January 14, 2015, 08:03:34 PM »


There is no such thing as "a casual user". Do not forget that both MS- and Apple-powered gadgets are also represented in this rising chart of "casual" devices:



With Linux amounting to a little over 1% in desktop OSes, and through its Android hypostasis, to only slightly over 50% in "casual" gadgets, how much that would be all in all against Microsoft, I wonder? ;)

To cut the story short, a few hundred well motivated MS devs keep on outsmarting the rest of the world dramatically. That's yet another proof to the statement that History is written by individuals rather than faceless masses, GNU or no GNU. :)
« Last Edit: January 14, 2015, 08:18:25 PM by Mike Lobanovsky »