由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - FMP mini profile
相关主题
FMP tutorialFacebook Is Buying Huge Messenger App Whatsapp For $19 Bill (转载)
FMP 3.0 Mitbbs 首发 — 求建议求反馈日记软件
FMP vs ExecutorService/Futurejava update main UI from child thread issue (转载)
FMP 进驻 Programming 版FMP supports UI thread in both Swing and SWT
FMP 一个完整可运行的范例程序FMP 已经在 maven central repository 里了
请教一下 open source 的 目录FMP for concurrent programming 招生(免费辅导)
Re: 安装windows live messenger的问题vista写thread safe程序现在也是程序员必须要掌握的了吧
yahoo messenger如何编程?Java 多线程 的架构如何改进?
相关话题的讨论汇总
话题: fmp话题: 8226话题: objects话题: messenger
进入Programming版参与讨论
1 (共1页)
o**2
发帖数: 168
1
费了老大的劲才把FMP的介绍塞进了2000个字符里。大家帮忙挑挑毛病。
Fast Messenger Programming (FMP) is a new object-based model for general
concurrent programming with NO threads.
FMP elements:
• Active objects – a type of virtual objects that represent business
functions
• Messenger objects – act as virtual machines to host and realize
active objects
• Text-based names – for FMP entities
An active object is defined as an object with:
• A name
• A list of services – each has a name and can be viewed as a method,
function, or message port according to your preference
• A headcount – with built-in semantics of concurrency: it handles
requests independently and sequentially
• Optionally a group of independent headcounts – they share a pool of
incoming requests
• Accesses, through its hosting messenger, that are friendly to
mainstream programming styles including imperative, event-driven, flow-based
, etc.
1) Future m.callService ("calculator:multiply", m, n)
2) Void m.callServiceFor (callbackInfo, "calculator:multiply", m, n)
3) Void m.sendMessage ("calculator:multiply", m, n)
4) Void m.publishMessage ("sender:offer", m, n) // for dynamic routing
Format of fully qualified service names: "[MessengerName::]ActiveObjectName:
ServiceName"
Active objects are abstract and act as interfaces to their services. A
messenger binds user's impl objects, forwards them outside requests, offers
them a single-threaded context, and invokes them in various ways including
using reflection, as a listener, etc.
FMP benefits:
• Easy for callers – headcount concept and various programming styles
• Easy for impl objects – NO threads
• Unified model – FMP can be implemented on all OO languages and many
others like C – I have implemented FMP in Java & C# (shared-memory thread
model) and in JavaScript (dedicated-memory)
• No lock in – FMP impls are super simple and customizable – My Java
impl has only 900 lines
• Programming in the large – besides being virtual machines,
messengers can also be used as building blocks
FastMessenger.com
l*********s
发帖数: 5409
2
ding,
1 (共1页)
进入Programming版参与讨论
相关主题
Java 多线程 的架构如何改进?FMP 一个完整可运行的范例程序
FMP3分布式编程请教一下 open source 的 目录
请教个JAVA的小问题Re: 安装windows live messenger的问题vista
[合集] C++ question -- how to save objectsyahoo messenger如何编程?
FMP tutorialFacebook Is Buying Huge Messenger App Whatsapp For $19 Bill (转载)
FMP 3.0 Mitbbs 首发 — 求建议求反馈日记软件
FMP vs ExecutorService/Futurejava update main UI from child thread issue (转载)
FMP 进驻 Programming 版FMP supports UI thread in both Swing and SWT
相关话题的讨论汇总
话题: fmp话题: 8226话题: objects话题: messenger