Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo Emulator in golang
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TheRealMoonman" data-source="post: 409512" data-attributes="member: 52707"><p>This is probably the first time I've asked for help, but because I have stuff irl to deal with, it kind of conflicts with projects and stuff i wanna do, I recently talked a bit of shit about golang, which is a language developed by google, and while looking more into it, its actually a pretty fucking awesome language. I just wanna know if anybody is interested in helping me with this current project, that I'm writing in go, my biggest problem is caching the data taken from the database, and caching it, I have looked into some of the binaries for golang, but I'm not a go developer, I've just been reading a few pdfs to understand the basics, and since I use python alot, its pretty easy.</p><p>The use of semi-colons is pretty must gone, functions are called without them e.g Initate(), and they have no circular dependencies which is a bit of a mind fuck for me.</p><p>But other than the code which is fairly good to use, the speed is almost akin to C++ which blows C#, Node.js and Java out of the water.. if you write the code good enough.</p><p></p><p>So if anybody knows basics of caching in golang or something helpful for it and you wanna make a unique emulator, hit me up, because its a learning experience for me, and I haven't made a development thread for it yet because I want to see it working in action, before i post anything about it.</p><p></p><p>bit of an example how you'd open a mysql connection in it.</p><p>[CODE]func Connect() {</p><p> var err error</p><p> DB, err = gorm.Open("mysql", config.MYSQL_USER+":"+config.MYSQL_PASS+"@/"+config.MYSQL_DB+"?charset=utf8&parseTime=True&loc=Local")</p><p> if err != nil {</p><p> panic(err)</p><p> DB.Close()</p><p> }</p><p> fmt.Println(">Connection Succesful")</p><p> fmt.Println(">Test Query Starting")</p><p> TestQ()</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="TheRealMoonman, post: 409512, member: 52707"] This is probably the first time I've asked for help, but because I have stuff irl to deal with, it kind of conflicts with projects and stuff i wanna do, I recently talked a bit of shit about golang, which is a language developed by google, and while looking more into it, its actually a pretty fucking awesome language. I just wanna know if anybody is interested in helping me with this current project, that I'm writing in go, my biggest problem is caching the data taken from the database, and caching it, I have looked into some of the binaries for golang, but I'm not a go developer, I've just been reading a few pdfs to understand the basics, and since I use python alot, its pretty easy. The use of semi-colons is pretty must gone, functions are called without them e.g Initate(), and they have no circular dependencies which is a bit of a mind fuck for me. But other than the code which is fairly good to use, the speed is almost akin to C++ which blows C#, Node.js and Java out of the water.. if you write the code good enough. So if anybody knows basics of caching in golang or something helpful for it and you wanna make a unique emulator, hit me up, because its a learning experience for me, and I haven't made a development thread for it yet because I want to see it working in action, before i post anything about it. bit of an example how you'd open a mysql connection in it. [CODE]func Connect() { var err error DB, err = gorm.Open("mysql", config.MYSQL_USER+":"+config.MYSQL_PASS+"@/"+config.MYSQL_DB+"?charset=utf8&parseTime=True&loc=Local") if err != nil { panic(err) DB.Close() } fmt.Println(">Connection Succesful") fmt.Println(">Test Query Starting") TestQ() } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo Emulator in golang
Top