Scripting Language development

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
Nokurn
Chaos Rift Regular
Chaos Rift Regular
Posts: 164
Joined: Mon Jan 31, 2011 12:08 pm
Favorite Gaming Platforms: PC, SNES, Dreamcast, PS2, N64
Programming Language of Choice: Proper C++
Location: Southern California
Contact:

Re: Development video on youtube

Post by Nokurn »

tappatekie wrote:
wtetzner wrote: Well, there are plenty of languages that support arbitrary precision integers, some only through libraries (like Java), but many as built-in types.
https://en.wikipedia.org/wiki/Arbitrary ... #Languages
I have looked, but my code seems to be alot more powerful, since it can store way beyond those integers, it can even store a number which takes up 1GB of hardisk space to store the string value of the number...
The .NET framework's BigInteger class can do that too. That's why such libraries are called "arbitrary"; the only limits to the number's magnitude are the hardware.
Unless your code is being specially developed using a new algorithm for performing arithmetic on arbitrarily large numbers, I would advise that you use an existing library for any code that you plan to use for more than just messing about. These kinds of libraries typically use a number of optimization tricks to make working with large numbers feasible in any small period of time--special algorithms, using the CPU/ALU for 8-, 16-, 32-, 64-, and 128-bit numbers, etc.
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

Nokurn wrote:
tappatekie wrote:
wtetzner wrote: Well, there are plenty of languages that support arbitrary precision integers, some only through libraries (like Java), but many as built-in types.
https://en.wikipedia.org/wiki/Arbitrary ... #Languages
I have looked, but my code seems to be alot more powerful, since it can store way beyond those integers, it can even store a number which takes up 1GB of hardisk space to store the string value of the number...
The .NET framework's BigInteger class can do that too. That's why such libraries are called "arbitrary"; the only limits to the number's magnitude are the hardware.
Unless your code is being specially developed using a new algorithm for performing arithmetic on arbitrarily large numbers, I would advise that you use an existing library for any code that you plan to use for more than just messing about. These kinds of libraries typically use a number of optimization tricks to make working with large numbers feasible in any small period of time--special algorithms, using the CPU/ALU for 8-, 16-, 32-, 64-, and 128-bit numbers, etc.
Okay, and I have just multiplied a number with 1 billion zero's!! with 4...
Also, I prefer not to use BigInteger class in .Net because it's only in version 4.5, I prefer to use 2.0 as it's more compatible.

As to new algorithm, all it's doing is just:
12+9
2+9=11 > 9 so 11-10 and carry 1
1+0(nothing there)+the carry = 2
put those together and you get 21

Thats basically, what it does which gives it no limits, except how big of a string you can store in memory,
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

Video has been finished!!! 3.8gb to upload, just need to put a few finishing touches to it. (making the video syncronized with the audio voiceover)
User avatar
lalacomun
VS Setup Wizard
VS Setup Wizard
Posts: 114
Joined: Wed Dec 28, 2011 10:18 pm
Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
Programming Language of Choice: C++
Location: Argentina
Contact:

Re: Development video on youtube

Post by lalacomun »

tappatekie wrote:Video has been finished!!! 3.8gb to upload, just need to put a few finishing touches to it. (making the video syncronized with the audio voiceover)
Hell yes!! :mrgreen:
Image
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

Video is being uploaded, and an announcement, Plywood will now let you import windows libraries e.g kernel32.dll :D

Here is a sample of what you would code in plywood to invoke a dll method

Code: Select all

//No return type use
extern "kernel32.dll" method Beep((int)frequency, (int)duration)

//Having a return type
extern "kernel32.dll" int SendMessage((ptr)handle, (ptr)msg, (ptr)wparam, (ptr)lparam)

//Invoking them
Beep(100, 100)
The process of dynamically invoking win32 methods is as follows (what Im doing anyway...)
  • Create a library handle from calling kernel32 LoadLibraryEx
    Get the method pointer from the library by calling kernel32 GetProcAddress
    Then, we need to create a dynamic delegate type for the method so...
    • Make C# code for defining a delegate (with the arguments)
      Compile it
      Get the type of the delegate from the output assembly
    We then create a Delegate object from Marshal.GetDelegateForFunctionPointer
    To invoke now, we just simply do myDelegate.DynamicInvoke(arguments) :D
Last edited by tappatekie on Thu Apr 26, 2012 8:33 pm, edited 1 time in total.
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

It's HERE!!!

User avatar
lalacomun
VS Setup Wizard
VS Setup Wizard
Posts: 114
Joined: Wed Dec 28, 2011 10:18 pm
Favorite Gaming Platforms: psx, nintendo ds, gameboy advance, xbox 360, ps2
Programming Language of Choice: C++
Location: Argentina
Contact:

Re: Development video on youtube

Post by lalacomun »

cool! ^ :)
Image
User avatar
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Re: Development video on youtube

Post by bbguimaraes »

Seems like a good video, but the combination of low quality and small font makes it impossible to see the text. You should fix that for this or at least the next videos.
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

bbguimaraes wrote:Seems like a good video, but the combination of low quality and small font makes it impossible to see the text. You should fix that for this or at least the next videos.
Text seems just about readable for 720p quality (and full screen) mode on YouTube
User avatar
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Re: Development video on youtube

Post by bbguimaraes »

Oh, Youtube has been kind of crazy these days. It just shows 360p quality for me. Nevermind then.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Development video on youtube

Post by dandymcgee »

bbguimaraes wrote:Oh, Youtube has been kind of crazy these days. It just shows 360p quality for me. Nevermind then.
Morons at my college couldn't get the network connection working at any acceptable speed so they decided to "fix" it by rate limiting YouTube. It now takes ~15 minutes of buffer time to load ~1 minute of watchable video. I'm fucking pissed.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Re: Development video on youtube

Post by bbguimaraes »

Yeah, that happened at mine too. But they just blocked it for some time, along with several other sites. Now they restored it.

Their blocking is kinda crazy too. Photobucket is blocked, and they claim it's a "social network". Sometimes, when I'm there and checking some programming sites, I can't see the pictures because they are hosted on the site. That's really annoying.
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Development video on youtube

Post by tappatekie »

Happens to me in college :L Buffering speeds are disgraceful.

I have also updated my first post for now supporting the "Common Language Runtime"!
User avatar
THe Floating Brain
Chaos Rift Junior
Chaos Rift Junior
Posts: 284
Joined: Tue Dec 28, 2010 7:22 pm
Current Project: RTS possible Third Person shooter engine.
Favorite Gaming Platforms: PC, Wii, Xbox 360, GAME CUBE!!!!!!!!!!!!!!!!!!!!!!
Programming Language of Choice: C/C++, Python 3, C#
Location: U.S

Re: Scripting Language development

Post by THe Floating Brain »

Like the vid :-)
"Why did we say we were going to say we were going to change the world tomorrow yesterday? Maybe you can." - Myself

ImageImage
tappatekie
Chaos Rift Junior
Chaos Rift Junior
Posts: 204
Joined: Mon Nov 21, 2011 3:01 pm
Current Project: Web browser from scratch
Favorite Gaming Platforms: SNES, PSP, PS1 and 3
Programming Language of Choice: C#
Location: A house near me
Contact:

Re: Scripting Language development

Post by tappatekie »

THe Floating Brain wrote:Like the vid :-)
Cheers :P
Post Reply