synrc / rt Goto Github PK
View Code? Open in Web Editor NEW☀ RT: Erlang Runtime Library
Home Page: https://rt.n2o.dev
License: ISC License
☀ RT: Erlang Runtime Library
Home Page: https://rt.n2o.dev
License: ISC License
Line 18 in 64fd3b1
You cannot spawn a process without a link within the function start_link
. It could be very confusing and misleading
Should be replaced by gen_server
I believe
Should be moved to function guard
permit(_Application, Bool) when !is_boolean(Bool)
exit({badarg, {?MODULE, permit, [Application, Bad]}});
permit(Application, Bool)
...
And we can do even better
permit(_Application, Bool) when is_boolean(Bool)
...
85 lines
4 levels case nesting (more than once)
Consider refactoring
It's almost logicless module. just a supervisor configuration. Pure data can be moved out to hrl-files or some configuration files
Reply
isn't accumulated in foldl
. Thus ok
is returned if there were any successful req
<function>(S) ->
case inet_db:lookup_socket(S) of
{ok, Mod} ->
Mod:<function>(S);
Error ->
Error
end.
This pattern repeats itself all over the place. It can be replaced by a macro or a higher order function
These modules form a very basis of OTP and also a main selling point. Wishing freedom of supervisor implentation and legacy-free API I propose to introduce in new kernel
and stdlib
applications app
and sup
modules for Application and Supervisior. While implementing application
and supervisor
will be based on wrapping of all calls to app
and sup
core modules in new runtime.
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.