bloom-lang / bud-sandbox Goto Github PK
View Code? Open in Web Editor NEWWork-in-progress sample code related to Bud
Home Page: http://boom.cs.berkeley.edu/
License: Other
Work-in-progress sample code related to Bud
Home Page: http://boom.cs.berkeley.edu/
License: Other
There are errors in both the design and the implementation. Implementation:
@addy
is used but never assigned to, as far as I can tell.action_msg
to mcast_send
-- i.e., we aren't multicasting kvs ops when we see client requestskvget_response
for a given kvget
will be delivered in the same timestep. When using a replicated KVS, this is not the case.Design: more coordination needed. There is no reason to think that (a) client write order will be respected when writes are applied at KVS replicas (b) all writes will be applied when checkout is received.
There is a typo in test/tc_bfs.rb: tnest_addchunks should be test_addchunks.
Making the change myself, the test does not pass because it cannot find method remember_resp
for BFSMasterServer
I don't have time to look into it now:
$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11.4.0]
$ ruby tc_bfs.rb --name test_fsmaster
Run options: --name test_fsmaster --seed 1613
# Running tests:
Warning: underspecified dataflow: ["remove_member", true]
Warning: underspecified dataflow: ["member", false]
Warning: underspecified dataflow: ["my_id", true]
Warning: underspecified dataflow: ["add_member", true]
Warning: underspecified dataflow: ["added_member", false]
E
Finished tests in 3.368314s, 0.2969 tests/s, 0.0000 assertions/s.
1) Error:
test_fsmaster(TestBFS):
Bud::Error: exception during Bud evaluation.
Exception: #<NoMethodError: undefined method `flat_map' for #<Bud::BudJoin:0x10f005f18>>
Location: (eval):1:in `initialize'.
Rule: chunk_cache < (+(master_duty_cycle * last_heartbeat).flat_map do |d, l|
l.payload[1].map do |pay|
unless chunk_cache { |c| c.chunkid if (c.node == l.peer) }.include?(pay) then
[l.peer, pay, d.val.to_f] unless pay.nil?
end
end
end)
Works with MRI 1.9; perhaps related to removing the dependency on backports.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.