Giter Site home page Giter Site logo

Comments (24)

sniperHW avatar sniperHW commented on August 25, 2024

对,暂时只支持linux.你可以把epoll换成kquene试试

from survive.

Pythoner-xu avatar Pythoner-xu commented on August 25, 2024

现在知道的lua版服务端目前了解,我就知道云风的,你的,还有quick的server了,支持下喽

from survive.

LaoZhongGu avatar LaoZhongGu commented on August 25, 2024

可以根据云风的Skynet自己写一个移植到mac下的吧。就是网络那块而已。

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

mac的kqueue根freebsd的一样的吧?正准备装个虚拟机把kqueue的支持加上

from survive.

LaoZhongGu avatar LaoZhongGu commented on August 25, 2024

有没有尝试考虑使用Lua5.3版本呢?

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

过段时间吧

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

distrilua已经添加了对freebsd的支持,你可以用mac编译试下,目前知道需要替换clock_gettime

from survive.

Pythoner-xu avatar Pythoner-xu commented on August 25, 2024

ok,我编译下

from survive.

longjin avatar longjin commented on August 25, 2024

想问一下你们客户端这方面的问题,你们网络这一块是不是有一部分写在c++里面啊,这个函数WriteUint16我怎么在lua里面找不到,如果方便的话,留个qq联系啊,谢谢!

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

from survive.

longjin avatar longjin commented on August 25, 2024

你能把c++那一部分的代码也分享一下吗?我真的很需要这方面的资料

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

跟服务器部分实现是一致的,只不过epoll/kqueue换成了select,MyCocos2dxTest里面可以找到原始的实现,但是那个版本有bug没修复.

from survive.

2373301 avatar 2373301 commented on August 25, 2024

请问哪个版本的 Survive 跟distri.lua 配合能跑起来啊...
编译了客户端连不上去很沮丧啊, 难道得碰运气试版本?

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

distri.lua拿新.Survive拿https://git.oschina.net/sniperHW/Survive.
东西多github难更新

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

github上的Survive也调整过了。

from survive.

2373301 avatar 2373301 commented on August 25, 2024

好, 搭成功了, 你底层咋又换成 chuck 了呢,为何~~

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

chuck对接口和代码重新做一次提炼.还有distri.lua的整个运行环境都在coroutine中.
chuck将面向事件的callback模式和coroutine区分开来.某些性能要求更高的地方可以不使用coroutine,完全使用事件模式

from survive.

2373301 avatar 2373301 commented on August 25, 2024

我们群里有人也用actor模式, actor 既有c++层面的, 也有脚本层面的,现在只支持lua, 语义很类似erlang.
https://github.com/nousxiong/gce

from survive.

2373301 avatar 2373301 commented on August 25, 2024

我们现在基本上都正在往实际工程里用呢

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

这个项目我知道.我对actor没有特殊喜好.chuck倾向作为基本组件库.不作为框架限定使用模式.

from survive.

2373301 avatar 2373301 commented on August 25, 2024

你用纯lua开发逻辑, 有没有啥心得.
lua 没有好的IDE ,调试环境, 无类型, 感觉写大型逻辑吃力的
现在c++11,简洁这么多, 用lua写纯逻辑没啥优势啊 ?

from survive.

2373301 avatar 2373301 commented on August 25, 2024

就算不用c++11, 用c# 也是很好用的啊

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

lua肯定不能用于开发大型游戏.总体代码量5W已经到上限了.
相比于c++和C#,lua最大吸引我的是内置的coroutine,可以舒舒服服的写异步逻辑.

from survive.

sniperHW avatar sniperHW commented on August 25, 2024

https://github.com/mpeterv/luacheck 看下这个项目 可以对lua做静态检查避免一些低级错误

from survive.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.