Comments (11)
I think it's important to clarify, my commentary was actually on the representation of the configuration in code, not in the configuration files.
from lokinet.
INI was chosen for UX. If other projects can use INI, it's probably possible somehow to make it work.
I'm against using YAML
appropriateness of using a library over custom, internally maintained, code
This is not a value we hold. More dependencies isn't always a good thing.
Compile-time safety is your strongest point here.
from lokinet.
liilac: if you want, we could go full TOML (ew) to gain access to more descriptive types 🤔
- wouldn't break existing configs
ye I also agree with ryan's position on external code
- code should be auditable
- simplifies packaging (at this time, it is possible to ship a fully linked binary with no external requirements other than
[libc|msvcrt]
andlib[std]c++
) - simplifies user experience for installation from source (rapidjson is header-only)
from lokinet.
At least TOML is like INI, it maybe a good compromise, if we need one
https://github.com/toml-lang/toml
from lokinet.
What was the reason for closing this? Would it be possible to get a summary of the thoughts and reasoning behind a deliberate choice to not (at some point) have a well-typed representation of the configuration in code? @majestrate
from lokinet.
from lokinet.
@majestrate I think you're misunderstanding the proposal here.
It's nothing to do with the configuration file format; comments on changes to that were tangential.
The proposal and discussion here (on my part), was about having a well-typed representation of the configuration in code; i.e. with structs and such.
Simplistic example in plain C:
typedef struct
{
int listenPort;
const char* nickname;
// ...
} config;
from lokinet.
ah i see, that would make more sense.
from lokinet.
Might be helpful to link an exhaustive sample config here
from lokinet.
the sample config is generated by lokinet using the -g
flag
from lokinet.
we have refactored the config layer to make things more strongly typed.
from lokinet.
Related Issues (20)
- No `contrib/systemd-resolved/lokinet.conf` file. HOT 1
- Windows 11 Professional - lokinet-0.9.11-release not working HOT 3
- useradd: invalid flag for Pre-in RPM Scriptlet HOT 1
- [discussion] lokinet vs lightning network onion routing HOT 2
- Explore WebTransport capable wire protocol.
- [discussion] Research Equi-x for DDoS protection HOT 1
- # Monetizing Lokinet: Integrating Payment, Per Order Token Burning, and Authorization into the Exit Marketplace HOT 2
- cannot set interface name: Operation not permitted HOT 5
- failed to connect to lokinet RPC: connection attempt timed out HOT 1
- Lokinet JavaScript Error HOT 4
- old version when downloading from the site HOT 2
- Incompatibility with UVW 3.0.0? error: 'AsyncHandle' is not a member of 'uvw'; did you mean 'async_handle'? etc. HOT 9
- Build error with recent ngtcp2 HOT 4
- Nixos: Unable to use lokinet HOT 2
- out of date static dep HOT 2
- Doesn't connect to the internet HOT 35
- Fedora(38) / RPM Support
- Build on FreeBSD 13.2-RELEASE-p4 fails with zlib 1.2.13 404 not found and undefined symbol: llarp::sys::service_manager after zlib url fix
- end of development? HOT 5
- Update it to Ubuntu Mantic Minotaur
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lokinet.