Search found 834 matches

by muntoo
25 Apr 2012, 01:33
Forum: Mindstorms Software
Topic: wishlist for NXC
Replies: 240
Views: 386883

Re: wishlist for NXC

Although I stand with Matt, let's just wait for John to answer and not pollute this thread when neither sides are willing to give ground. ;)
by muntoo
21 Apr 2012, 20:39
Forum: Mindstorms Software
Topic: Number indexing of structs
Replies: 6
Views: 15691

Re: Number indexing of structs

For example, a simple implementation (bad coding style, and probably buggy, but I don't care) in C++ would be: struct C { int a, b, c; size_t s = {0, sizeof(a), sizeof(b), sizeof(c)}; void* index(int i) { void* r = this; while(i--) r += s[i]; return r; } }; Not sure about more complex and flexible i...
by muntoo
17 Apr 2012, 03:28
Forum: Off-Topic
Topic: Starting my own company, how realistic is this?
Replies: 7
Views: 29758

Re: Starting my own company, how realistic is this?

From what I've heard, being successful is about motivation, skill, and a hell lot of luck. You may be interested in the following sites: OnStartups.SE Personal Productivity.SE AskReddit -- Ask this question again on AskReddit, and you may get a good response. Some unorganized thoughts: My ideal job ...
by muntoo
19 Mar 2012, 20:33
Forum: Mindstorms Software
Topic: RectOut
Replies: 23
Views: 44914

Re: RectOut

mattallen37 wrote:Which is the only exception I can remember (other than custom polygons, where you can do it however you want).
And Ellipses. Which is weird, since I can't do ellipses with a diameter of an even number.
by muntoo
18 Mar 2012, 01:54
Forum: Mindstorms Software
Topic: RectOut
Replies: 23
Views: 44914

Re: RectOut

Well, not unless you frequently put in negative values for the width and height. ;)
by muntoo
09 Mar 2012, 05:11
Forum: Mindstorms Software
Topic: Preemptive scheduling?
Replies: 17
Views: 27104

Re: Preemptive scheduling?

The FW processes 20 opcodes by default before switching to the next task, and earlier if a Wait() or Yield() is called. (The opcodes can vary based on the assigned task priority.) John Hansen has written some posts about it somewhere on this forum and other places . Maybe try and search for that dis...
by muntoo
09 Mar 2012, 04:56
Forum: Mindstorms Software
Topic: RIC file format
Replies: 2
Views: 9326

Re: RIC file format

I don't know much about RICs either, but this post explains some. RIC Revealed NXT graphic files are often used to spice up a robotics program. The Alpha Rex robot uses two heart pictures to display something like a beating heart on the LCD while the robot moves about. Ross Crawford’s mini chess p...
by muntoo
08 Mar 2012, 04:28
Forum: Mindstorms Software
Topic: string size limit
Replies: 13
Views: 32472

Re: string size limit

Then is there a way to release variable space for variables I am done with? The NBC code uses temporary variables, but IIRC, it doesn't clean them up after use. The only way to guarantee no extra memory is being used is to write the critical parts of your code in NBC. I suppose we could feature req...
by muntoo
08 Mar 2012, 04:23
Forum: Mindstorms Software
Topic: string size limit
Replies: 13
Views: 32472

Re: string size limit

Using the first post method might actually be slower than simply writing data to a preallocated file one number at a time. ( write 41, write 42, write 43, etc ) This is because each time you add text to Message , it must be reallocated. That's a hundred unnecessary allocations of large amounts of da...