Implement basic function to split some generic computational work between threads. Split should occur only on some threshold - if computational work (input length) is shorter than this threshold, no splitting should occur and no threads should be created.
You get as input:
1. Vec<T>
2. Function f(t: T) -> R
Threshold can be just constant.
You should return:
Up to you, but probably some Vec of the same length as input(1)
关于 Gear
Gear是一个基于Substrate的智能合约平台,使任何人都能在几分钟内部署一个dApp。Gear是运行智能合约的最具成本效益的方式,这些智能合约是由许多流行的编程语言编译而成的,如Rust、C、C++等等。它确保了非常简约、直观和充分的API,可以在多个网络上运行新写的和现有的程序,而无需重写。智能合约存储在区块链的状态中,并被调用,根据要求保留其状态。
Gear正计划成为Polkadot和Kusama网络中的一个parachain,以在这些各自的网络中托管智能合约。这将意味着,通过在Gear上的部署,开发者将能够以最小的成本利用Polkadot和Kusama网络和生态系统的所有好处。
Gear将通过使创新的dApps、微服务、中间件和开放API的运行,协助向Web3技术的大规模使用过渡。
Gear Technologies 宣布于 12 月 20 日完成 1200 万美元私募轮融资,此轮融资由 Blockchange Ventures 领投。
除 Blockchange 外,其他顶级投资机构也参与本轮融资,其中包括 Three Arrows Capital(三箭资本)、Lemniscap、Distributed 、Globals、LAO、 Mechanism Capital、Bitscale、Spartan Group LLC、HashKey、DI Ventures、Elysium Venture Capital、Signum Capital 和 Konstantin Lomashuk 领导的 P2P Economy,以及 Web3 基金会和 Parity Technologies 的一些高管。
报道链接: Gear Technologies Raises $12M to Boost Smart-Contract Development on Polkadot (coindesk.com)
Website:https://gear-tech.io/ Twitter:https://twitter.com/gear_techs Github:https://github.com/gear-tech Discord:https://discord.com/invite/7BQznC9uD9 Medium:https://medium.com/@gear_techs Telegram:https://t.me/gear_tech Telegram 中文群:https://t.me/Gear_CN Wiki:https://wiki.gear-tech.io/ 微信公众号:GearFans
职责
要求
小测试
Implement basic function to split some generic computational work between threads. Split should occur only on some threshold - if computational work (input length) is shorter than this threshold, no splitting should occur and no threads should be created.
You get as input:
Threshold can be just constant.
You should return:
Code should be published on github.
工作方式
福利待遇
工作地点
联系人