Trolli Schmittlauch schmittlauch
  • Joined on 2017-06-16
schmittlauch opened issue schmittlauch/Hash2Pub#27 2020-05-31 23:32:24 +02:00
Avoid partial record accessors
schmittlauch commented on pull request schmittlauch/Hash2Pub#17 2020-05-31 22:09:25 +02:00
Linting integration

Am I clear enough? I haven't had much sleep recently…

@Hecate Honestly, no. But maybe you had time to catch up on sleep?

I haven't set it up as a pre-commit hook yet as I don't fully understand it, but running it manually before a commit does only complain about unclean working state.

But the important thing here is that since it returns 1 as an exit code, it will abort the commit step and let you apply stylish-haskell on the incriminated files.

Do you mean that I then manually shall invoke stylish-haskell -i on each Haskell file in the repo? Couldn't I just let the pre-commit script make that do automatically, or are there edge cases where stylish messes up the not-yet-commited changes (e.g. syntax errors, incomplete implementations)?

schmittlauch opened issue schmittlauch/Hash2Pub#26 2020-05-30 18:16:56 +02:00
[tracking] possible performance optimisations
schmittlauch opened issue schmittlauch/Hash2Pub#25 2020-05-30 18:04:36 +02:00
Protocol Documentation
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-30 13:52:41 +02:00
2542091379 adjust rest of code to new message structure
f8d444d5b6 FediChordMessage: last part has falg instead of parts number in each msg
Compare 2 commits »
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-30 01:11:07 +02:00
fea9660f80 WIP: start implementing incoming request handling
96e61b726f adjust hlint hints to ignore lambda-case
Compare 2 commits »
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-29 17:39:44 +02:00
61818c58a9 main server thread structure
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-27 23:37:42 +02:00
b4ecf8b0aa catch and handle more join errors
38a34d7d2a catch and handle more join errors
Compare 2 commits »
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-27 19:10:53 +02:00
38a34d7d2a catch and handle more join errors
6ff765c63e catch and handle bootstrap join errors
Compare 2 commits »
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-27 18:09:01 +02:00
27e5c5f9ce bracket all socket-using operations to avoid resource leakage
3e6f5d9fee bracket all socket-using operations to avoid resource leakage
Compare 2 commits »
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-27 17:48:11 +02:00
3e6f5d9fee bracket all socket-using operations to avoid resource leakage
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-26 20:54:11 +02:00
b1c5c5e5f4 try all bootstrap nodes until successfully joined
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-26 14:23:46 +02:00
702684b1a9 split fediChordJoin into general purpose and bootstrapping part
43eb04dfea preliminary passing of bootstrap nodes in Main to fediChordJoin
ad1465c5fe use global cache adding function
Compare 3 commits »
schmittlauch opened issue schmittlauch/Hash2Pub#24 2020-05-26 11:59:18 +02:00
Caching layer for DHT node responsibility resolution
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-25 22:11:29 +02:00
e3bfa26ddb join request + large FediChord refactoring
schmittlauch commented on pull request schmittlauch/Hash2Pub#17 2020-05-23 17:57:59 +02:00
Linting integration

The helper script can be run in a CI action or a pre-commit git hook (very useful, I also use that for hlint).

If run as a pre-commit hook, wouldn't it always complain about a dirty working directory then as before a commit changes aren't commited yet?

schmittlauch deleted branch hlint-configuration from Hecate/Hash2Pub 2020-05-23 17:53:51 +02:00
schmittlauch commented on pull request schmittlauch/Hash2Pub#17 2020-05-23 17:53:29 +02:00
Linting integration

And finally, a stylish-haskell helper script that detects if code files are dirty. Can be useful for CI, although manually calling it can be nice if you would rather first implement then beautify.

@hecate I do not fully understand what's the best way of using stylish-haskell in my workflow:

On the one hand I'm too lazy for calling the tool itself for each single file of my project.
When using the helper script, I usually commit my changes first, then run the heloer script and --amend the formatting changes to the previous commit. This only works though when always committing all changes from the repo, not only those of a single file or even a chosen patch set.

Why does the helper script care about a dirty working directory?

schmittlauch opened issue schmittlauch/Hash2Pub#23 2020-05-22 22:53:24 +02:00
remove node from cache after it failed to respond a number of times
schmittlauch pushed to dhtNetworking at schmittlauch/Hash2Pub 2020-05-22 22:12:53 +02:00
d5841d13fd extract queryID message sending function so it can be used for first join
059cc5fcc9 extract queryID message sending function so it can be used for first join
Compare 2 commits »