Jump to content

Recommended Posts

  On 8/2/2014 at 7:25 PM, Kcinsu said:

I read the swift manual the day after it was announced, and was very pleased with what I saw. I am, however focusing on C/C++/objectice-c for now, as there will be a lot of legacy code for sometime, that I want to be able to understand. Also,a lot of the lower level stuff like core audio etc is in C, and so I want to really know how to use that. I do really look forward to getting hands on with swift soon though.

 

pretty much my thoughts also.

I want to slowly migrate away from ObjC towards more portable C/C++

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2195988
Share on other sites

  On 8/3/2014 at 5:54 AM, logakght said:

Question:

 

So I have decent skills in Processing, also I'm learning Pure Data (but I guess it isn't that much of a versatile language). Which language should I learn next? I like to do creative cool stuff, no boring databases and shit like that. C++, Java, C#, Python, or any other?

 

imo it depends on what platform you want to run your stuff.

Java fucking sucks.

you might like openFrameworks, it's C++ and it's like Processing but harder and faster and it is not Java.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2195989
Share on other sites

The problem with me is that I know there are a lot fucking lot of languages I could learn, and I don't know, then, what I could do with each one.

 

  On 8/3/2014 at 6:27 AM, psn said:

Try Python for high level stuff, C for low level stuff and Java or C# for object oriented stuff.

 

I know, but let's finish this now...

 

 

  Reveal hidden contents

 

 

Sorry for the noob question.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196177
Share on other sites

  On 8/3/2014 at 11:43 PM, logakght said:

The problem with me is that I know there are a lot fucking lot of languages I could learn, and I don't know, then, what I could do with each one.

 

  On 8/3/2014 at 6:27 AM, psn said:

Try Python for high level stuff, C for low level stuff and Java or C# for object oriented stuff.

 

I know, but let's finish this now...

 

 

  Reveal hidden contents

 

 

Sorry for the noob question.

You can do everything with any half decent language

Some things are just easier in some languages than others

 

Start with C

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196257
Share on other sites

  On 8/4/2014 at 3:44 AM, Zeffolia said:

 

  On 8/3/2014 at 11:43 PM, logakght said:

The problem with me is that I know there are a lot fucking lot of languages I could learn, and I don't know, then, what I could do with each one.

 

  On 8/3/2014 at 6:27 AM, psn said:

Try Python for high level stuff, C for low level stuff and Java or C# for object oriented stuff.

I know, but let's finish this now...

 

 

  Reveal hidden contents

 

 

Sorry for the noob question.

You can do everything with any half decent language

Some things are just easier in some languages than others

 

Start with C

  On 8/4/2014 at 11:06 AM, phling said:

yes... maybe get an Arduino starter kit and try some fun stuff with sensors or I dunno.

The Arduino is basically a very crappy computer. In this case it's a good thing, limitations boost creativity etc.

 

it'll be an easy transition from Processing too.

Yes, thanks. In fact I'll buy one for school. And also I'm trying open frameworks.
Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196389
Share on other sites

Guest skibby
  On 8/3/2014 at 4:40 AM, Zeffolia said:

My Mandelbrot set viewer is coming along beautifully. Making it in C++ and Qt. Makes high quality images. Just wish there was a cross platform floating point type longer than "long double" - it gets pixelated when you zoom in too far because of rounding errors

 

aCjrB.png

 

feature request: can you make it spin around and around when you do zoom animations so it seems like you're falling out of the sky in a biplane?

Edited by skibby
Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196397
Share on other sites

  On 8/4/2014 at 3:48 PM, skibby said:

 

  On 8/3/2014 at 4:40 AM, Zeffolia said:

My Mandelbrot set viewer is coming along beautifully. Making it in C++ and Qt. Makes high quality images. Just wish there was a cross platform floating point type longer than "long double" - it gets pixelated when you zoom in too far because of rounding errors

 

aCjrB.png

 

feature request: can you make it spin around and around when you do zoom animations so it seems like you're falling out of the sky in a biplane?

 

It takes a few seconds to render depending on what size it's at so you can't really do smoothe animations (unless you really scale down the detail then it just looks ugly). At least on my computer. But at some locations in the Mandelbrot set you can zoom in and out and it looks like a vortex

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196646
Share on other sites

That's awesome Zeffo! But shouldn't it be able to scale endlessly without having to worry about pixels? Rendering a 1000x1000 mandelbrot shouldn't take thát long, should it?

 

Today I did some stuff in Processing (which is basically a graphics wrapper for java) and it's pretty cool.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196652
Share on other sites

  On 8/4/2014 at 11:25 PM, th555 said:

That's awesome Zeffo! But shouldn't it be able to scale endlessly without having to worry about pixels? Rendering a 1000x1000 mandelbrot shouldn't take thát long, should it?

 

Today I did some stuff in Processing (which is basically a graphics wrapper for java) and it's pretty cool.

Locations are complex coordinates stored as two floating point values. The largest available float value in C++ is a long double (that I know of). Eventually you can't get more precise because there just aren't enough bits to store a more specific coordinate and zoom factor. So you can keep zooming in, but you'll get pixellation like this because it can't calculate Mandelbrot values for the areas in between the current location since floats can't store values that precise

aET7P.png

 

Doesn't take too long depending where you are in the set. If you want more detail you need to do more iterations in the Mandelbrot sequence, but if you raise the max iterations then all values not in the set are a guaranteed x number of iterations wasted. So yeah you can make a 1080p Mandelbrot render even on a shitty computer in an instant, but it won't look good.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196684
Share on other sites

  On 8/5/2014 at 12:41 AM, th555 said:

Ah, that sucks. So how do other fractal programs deal with this then?

I wish I knew. I've seen vids of zooming in seemingly forever, maybe they have some custom method or my method is just altogether wrong.

 

My method uses a pair of long doubles to store the current location in complex coordinates being rendered, and another long double to store the zoom factor, or the x and y offset per pixel. Halving it zooms in 2x so eventually you can't halve it anymore. Maybe they make sure the values are better aligned to make the best usage of the limits of floats, I don't know too much about that.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196767
Share on other sites

  On 8/3/2014 at 5:54 AM, logakght said:

Question:

 

So I have decent skills in Processing, also I'm learning Pure Data (but I guess it isn't that much of a versatile language). Which language should I learn next? I like to do creative cool stuff, no boring databases and shit like that. C++, Java, C#, Python, or any other?

 

C. everyone should know C. even if it isn't directly relevant to what you want to do, it'll teach you a lot of things about low-level programming that are useful to know.

  On 4/17/2013 at 2:45 PM, Alcofribas said:

afaik i usually place all my cum drops on scientifically sterilized glass slides which are carefully frozen and placed in trash cans throughout the city labelled "for women ❤️ alco" with my social security and phone numbers.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196768
Share on other sites

  On 8/5/2014 at 5:30 AM, usagi said:

 

  On 8/3/2014 at 5:54 AM, logakght said:

Question:

 

So I have decent skills in Processing, also I'm learning Pure Data (but I guess it isn't that much of a versatile language). Which language should I learn next? I like to do creative cool stuff, no boring databases and shit like that. C++, Java, C#, Python, or any other?

 

C. everyone should know C. even if it isn't directly relevant to what you want to do, it'll teach you a lot of things about low-level programming that are useful to know.

 

 

Learning to program an Arduino will make me understand C?

 

And sorry for interrupting your programming talks, I'm still such a noob ;_;

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196769
Share on other sites

  On 8/5/2014 at 5:49 AM, logakght said:

 

  On 8/5/2014 at 5:30 AM, usagi said:

 

  On 8/3/2014 at 5:54 AM, logakght said:

Question:

 

So I have decent skills in Processing, also I'm learning Pure Data (but I guess it isn't that much of a versatile language). Which language should I learn next? I like to do creative cool stuff, no boring databases and shit like that. C++, Java, C#, Python, or any other?

 

C. everyone should know C. even if it isn't directly relevant to what you want to do, it'll teach you a lot of things about low-level programming that are useful to know.

 

 

Learning to program an Arduino will make me understand C?

 

And sorry for interrupting your programming talks, I'm still such a noob ;_;

 

You write code for Arduinos in a language which is sort of a wrapper over C with lots of libraries to support the hardware, for GPIO support and stuff like that. I think, I've never used one.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196792
Share on other sites

  On 8/5/2014 at 5:20 AM, Zeffolia said:

 

  On 8/5/2014 at 12:41 AM, th555 said:

Ah, that sucks. So how do other fractal programs deal with this then?

I wish I knew. I've seen vids of zooming in seemingly forever, maybe they have some custom method or my method is just altogether wrong.

 

My method uses a pair of long doubles to store the current location in complex coordinates being rendered, and another long double to store the zoom factor, or the x and y offset per pixel. Halving it zooms in 2x so eventually you can't halve it anymore. Maybe they make sure the values are better aligned to make the best usage of the limits of floats, I don't know too much about that.

 

 

For example the legendary Fractint uses arbitrary-precision arithmetic. There are libraries for this, like GMP.

electro mini-album Megacity Rainfall
"cacas in igne, heus"  - Emperor Nero, AD 64

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196793
Share on other sites

  On 8/5/2014 at 8:35 AM, Zeffolia said:

 

  On 8/5/2014 at 5:49 AM, logakght said:

 

  On 8/5/2014 at 5:30 AM, usagi said:

 

  On 8/3/2014 at 5:54 AM, logakght said:

Question:

 

So I have decent skills in Processing, also I'm learning Pure Data (but I guess it isn't that much of a versatile language). Which language should I learn next? I like to do creative cool stuff, no boring databases and shit like that. C++, Java, C#, Python, or any other?

 

C. everyone should know C. even if it isn't directly relevant to what you want to do, it'll teach you a lot of things about low-level programming that are useful to know.

 

 

Learning to program an Arduino will make me understand C?

 

And sorry for interrupting your programming talks, I'm still such a noob ;_;

 

You write code for Arduinos in a language which is sort of a wrapper over C with lots of libraries to support the hardware, for GPIO support and stuff like that. I think, I've never used one.

 

 

it's just C/C++, I wouldn't say that either Arduino or Processing are or have their own language.

(Implementing Processing in Java might have seemed like a great idea at the time, but omg fuck off Java srsly).

 

Both are basically a minimalist IDE with a hardcoded application template to get you started, and a set of APIs, I would say.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2196874
Share on other sites

Guest FuncRandm

Zeffolia, you should have a look at GMP the GNU Multiple Precision Arithmetic library for big numbers https://gmplib.org. You can create arbitrarily large numbers here out of the range of double or long double. This is going to be slower than you might hope, but you could get some decent speed increases from choosing how the memory structures are aligned/indexed and parallelisation. You're running this in C++ so you might be able to use the parallel patterns library or openmp which can be pretty decent for simple parallelisation.

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2197440
Share on other sites

  On 8/6/2014 at 11:03 PM, FuncRandm said:

Zeffolia, you should have a look at GMP the GNU Multiple Precision Arithmetic library for big numbers https://gmplib.org. You can create arbitrarily large numbers here out of the range of double or long double. This is going to be slower than you might hope, but you could get some decent speed increases from choosing how the memory structures are aligned/indexed and parallelisation. You're running this in C++ so you might be able to use the parallel patterns library or openmp which can be pretty decent for simple parallelisation.

Awesome thanks, I'll check it out

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2197469
Share on other sites

I wrote a blog post on how to get Reddit json in a table view on an IOS device using Swift. Technically it could work with any JSON.

 

Surprisingly its quite popular

 

http://www.johnmullins.info/blog/2014/08/06/swift-json/

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2197700
Share on other sites

o. instructions. left click is zoom in, right click is zoom out and center. left and right arrow keys change color

Link to comment
https://forum.watmm.com/topic/79152-programming/page/11/#findComment-2198378
Share on other sites

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×