Total players online: 7



Take the Tour | Site Map

It is currently Tue Dec 12, 2017 12:41 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Handmade hero
PostPosted: Tue Dec 16, 2014 4:57 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

Check out this project!

http://www.Handmadehero.org

Live stream everynight of guy coding game start to finish
starts in 1 hour!

Video archive:

https://www.youtube.com/user/handmadeheroarchive


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Wed Dec 17, 2014 2:20 am 
Offline
Master Scripter
Master Scripter
User avatar

Joined: 08/11/2012 09:30
Posts: 317
That's pretty cool!

_________________
:shock: yeah yeah... Always I get slapped with some innocent animals... :D - Orngrimm


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Wed Dec 17, 2014 1:21 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

last night was setting up C so his program/game would update live when he made code changes without having to recompile/restart.

Still got a long way to go, everyone should stop in just to see what hes got going on!


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Wed Dec 17, 2014 7:09 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

today programmed live recording & playback looping of character movement for tuning,
talk about a huge time saver ... very sweet!! took less then a hour to setup!


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Mon Dec 29, 2014 6:11 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

another great site

"Header <cmath> declares a set of functions to compute common mathematical operations and transformations:"

http://www.cplusplus.com/reference/cmath/


https://software.intel.com/sites/landingpage/IntrinsicsGuide/

art

http://oryxdesignlab.com/


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Tue Jan 06, 2015 12:10 pm 
Offline
Master Scripter
Master Scripter

Joined: 12/17/2008 13:13
Posts: 373

Groups:
Might have to tune in soon. curious to see that.


Top
  Profile 
 Post subject: Re: Handmade hero
PostPosted: Mon Jan 12, 2015 7:48 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

Quote:
a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

https://projecteuler.net/


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Sat Jan 17, 2015 9:58 am 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

http://www.amazon.com/Calculus-Analytic-Geometry-9th-Edition/dp/0201531747


http://www.radgametools.com/default.htm


http://www.agner.org/optimize/


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Tue Jan 20, 2015 3:24 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

demo of john blows new computer language! runs tonight
starts in like 4 hours,

check it out:
http://www.twitch.tv/naysayer88


history:
A Programming Language for Games: Demo! (talk #3)
https://www.youtube.com/watch?v=UTqZNujQOlA


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Thu Jan 22, 2015 7:57 am 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 11/04/2008 23:33
Posts: 2001
Location: Iowa, aka Corn Country

Project Euler is cool... but problem 16 is beating me into a grave. I have come so close but so far.

_________________
I've got another question.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Fri Jan 23, 2015 9:16 pm 
Offline
Legendary Scripter
Legendary Scripter

Joined: 03/14/2004 23:13
Posts: 2810

Took advantage of the base being able to fit in a single digit...

Code:
  1. local strings = {}
  2.  
  3. strings[1] = string.char(2)
  4. for n = 2,1024,1 do
  5.   local nex = ''
  6.   local s = strings[n-1]
  7.   local carry = 0
  8.   for m = #s,1,-1 do
  9.     local val = (tonumber(s:byte(m)) * 2) + carry
  10.     if val > 9 then
  11.       carry = math.floor(val / 10.0)
  12.       val = val - (carry * 10)
  13.     else
  14.       carry = 0
  15.     end
  16.     nex = string.char(val)..nex
  17.     --print("n,m,val,carry : "..tostring(n).." "..tostring(m).."  "..tostring(val).."  "..tostring(carry))
  18.   end
  19.   if carry > 0 then nex = string.char(carry)..nex end
  20.   strings[n] = nex
  21.   if ( n == 1000 ) then
  22.     local out = ''
  23.     local sum = 0
  24.     for m = 1,#strings[n],1 do
  25.       out = out..string.char(strings[n]:byte(m) + 48)
  26.       sum = sum + strings[n]:byte(m)
  27.     end
  28.     print('-----')
  29.     print("number : "..out)
  30.     print("digits : "..tostring(#strings[n]))
  31.     print("check  : "..tostring(math.ceil(1000*math.log(2)/math.log(10))))
  32.     print("sum    : "..tostring(sum) )
  33.     print('-----')
  34.   end
  35. end
  36.  


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Sat Jan 24, 2015 5:37 am 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 11/04/2008 23:33
Posts: 2001
Location: Iowa, aka Corn Country

oh sorry, forgot to mention I finally solved it.


I didn't think about an array of digits and doing the math myself like a 3rd grader. I am over here doing modular exponentiation.. lol almost had it until the mod gets to big and becomes 9.999998x10^x power. It was so close.

Thanks though ximan, you were fully spot on with the solution.

I find this fun because it isn't language based at all and I have used C++ and lua to solve different problems. Sometimes lua is just more convenient and sometimes the raw powa of C++ and control over library, etc was useful.

I was suppose to sum 50, 50 digit numbers for one and C++ would have needed a big num lib. I popped it into lua, worked like a charm, lol.

_________________
I've got another question.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Sun Jan 25, 2015 11:48 am 
Offline
Legendary Scripter
Legendary Scripter

Joined: 03/14/2004 23:13
Posts: 2810

Not familiar with the projecteuler questions aside from glancing at this particular one, was clear it could be solved with repeated squaring, as the underlying problem is just radix conversion. Intended to use the table that the code fragment built to implement the exponentiation via squaring, but it became apparent after a speedy first run that it would be easier to just extend the table to at least a thousand entries and be done with it.

Sure, could have used an existing big num implementation (or language like python or java that has 'em built in) but that seemed a bit of a cheat. Besides, for regular exponentiation arbitrary precision packages don't use anything more complicated than exponentiation via squaring anyway (aka addition chained exponentiation), just optimized for the radix that the hardware is capable of handling. Only when one gets into repeated operations in a computation modulo some (huge (relatively prime)) number would it pay to start looking at using special techniques like montgomery reduction, modular operations being more computationally expensive. Anyway interesting problem, might have to look at the others some time.


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Wed Feb 04, 2015 4:36 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

lol

http://www.jeffandcaseytime.com/ - crazy skit


https://github.com/ocornut/imgui - imGui is a bloat-free graphical user interface library for C++


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: Handmade hero
PostPosted: Wed Jan 13, 2016 8:12 pm 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 10/10/2003 16:36
Posts: 1381
Location: no longer active

Day 236 of handmade hero ... getting into info on how gpu's work ect..
pretty informative lesson

http://www.twitch.tv/handmade_hero/v/35311312

not sure why my ping soo high to twitch.tv so i switched to his youtube channel for better connection
but the youtube recording seems to be lower quality video

https://www.youtube.com/watch?v=vbnozKJM0Oo


Top
  ProfileShow poster's scripts in the public script library 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.