The new version of BLOCKSET 0.5.0 supports adding and getting directories. https://crates.io/crates/blockset
Notices by Sergey Shandar (functionalscript@techhub.social), page 5
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Friday, 15-Mar-2024 04:14:37 JST Sergey Shandar
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 13-Mar-2024 19:29:13 JST Sergey Shandar
Should I start looking to move my family to another country? https://www.msn.com/en-us/news/politics/trump-takes-control-of-the-rnc-with-mass-layoffs-restructuring/ar-BB1jMBUN
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 13-Mar-2024 01:36:05 JST Sergey Shandar
@rauschma currently, FunctionalScript repo uses CommonJS because it's very easy to make a simple module loader for CommonJS w/o writing JavaScript parser. I couldn't find a way to do this for ES modules.
I plan to switch to ES modules only after FunctionalScript NaNVM is ready.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Saturday, 09-Mar-2024 10:40:23 JST Sergey Shandar
@rauschma what about this version?
```ts
type Tree<T> = [Tree<T>, T, Tree<T>]|null;
```And if we would like to make a balanced tree for immutable containers, then we can define a BTree23:
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Saturday, 09-Mar-2024 04:13:10 JST Sergey Shandar
@rauschma agree! I really enjoy TS structural typing, and I think it has more potential than nominal typing for projects with many third-party packages and future distributed and decentralized applications.
One rule I've learned is to avoid mutable types if you want fewer cases when TypeScript can't catch bugs.
@shivelysanders should know better how to resolve such issues:
https://github.com/sergey-shandar/public/blob/45a6cb1f8cd21d284c84dae5ce50a8c6afd04397/index.mjs
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 06-Mar-2024 21:55:03 JST Sergey Shandar
I should stop using CRLF (`\r\n`) in my text files on Windows and switch to LF (`\n`) only.
- [X] VSCode settings: (EOL).
- [X] Git settings.Done.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 06-Mar-2024 05:12:48 JST Sergey Shandar
@deadparrot correct me if I'm wrong, please: if a type is a set of possible values then the `never` type is an empty set.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Tuesday, 05-Mar-2024 09:01:33 JST Sergey Shandar
@clhenrick @rauschma I have the same problem; how do I earn money on the completely decentralized system without vendor lock-in? I have some ideas, but I don't think this thread is a good place to discuss them in depth.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Tuesday, 05-Mar-2024 08:49:26 JST Sergey Shandar
@clhenrick @rauschma right, I mean the paid Sync system they have, with version control.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Tuesday, 05-Mar-2024 06:41:09 JST Sergey Shandar
@clhenrick @rauschma I'm working on completely decentralized knowledge base which should replace git and such systems as Obsidian (I mean as a storage). It allows decentralized URLs as well. However, it's far away from practical use.
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 04-Mar-2024 17:57:33 JST Sergey Shandar
CI on Apple Silicon for free: https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 04-Mar-2024 17:26:06 JST Sergey Shandar
@rauschma I have a folder `notes/` in my repositories with random ideas, notes, links, etc. For example https://github.com/datablockset/blockset/tree/main/notes
In conversation from techhub.social permalink Attachments
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 04-Mar-2024 12:57:43 JST Sergey Shandar
@jcaron @rauschma yeah, we should lobby the proposal https://github.com/tc39/proposal-type-annotations
In conversation from techhub.social permalink Attachments
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 04-Mar-2024 12:53:29 JST Sergey Shandar
GitHub Copilot suggested this code to serialize an array to JSON.
```rust
let mut r = "[".to_string();
for v in a.items().iter() {
r.push_str(&to_json(v.clone()));
r.push(',');
}
r.pop();
r.push(']');
r
```Yeah, what will happen if the `v` array is empty?
In conversation from techhub.social permalink -
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Sunday, 03-Mar-2024 07:52:39 JST Sergey Shandar
@rauschma it's one of the problems why I avoid build steps at all costs. I'm so happy that I switched to JavaScript + JSDoc (TypeScript as a linter) and never look back.
In conversation from techhub.social permalink -
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Thursday, 29-Feb-2024 13:52:33 JST Sergey Shandar
@rauschma I use double extension for FunctionalScript `.f.mjs` and Data JavaScript `.d.mjs` (a valid JavaScript module that contains only data, no functions or expressions). However, in your case, `.config.json` sounds more like a generic config subset of JSON for all applications. So `myapp-config.json` sounds better. Another option is `.myapp.json`.
In conversation from techhub.social permalink -
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Monday, 26-Feb-2024 07:08:28 JST Sergey Shandar
If a code coverage tool (like Tarpaulin) doesn't show coverage for a function because the Rust compiler optimized and inlined the function, then pass the function by a pointer in a unit test. #rust #test #coverage https://github.com/datablockset/blockset/blob/main/blockset-lib/src/info/node_type_set.rs#L36
In conversation from techhub.social permalink Attachments
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Friday, 23-Feb-2024 07:44:30 JST Sergey Shandar
@rauschma JSDoc version https://github.com/functionalscript/functionalscript/blob/main/json%2Fmodule.f.cjs#L18
In conversation from techhub.social permalink Attachments
-
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 21-Feb-2024 08:08:34 JST Sergey Shandar
IMHO, another billion-dollar mistake in software design is to have `Debug` and `Release` targets.
In conversation from techhub.social permalink -
Embed this notice
Sergey Shandar (functionalscript@techhub.social)'s status on Wednesday, 14-Feb-2024 16:30:08 JST Sergey Shandar
That's one of the first times when I couldn't agree more with the House Republicans! Trump has absolutely no business occupying the Oval Office. https://twitter.com/HouseGOP/status/1756774606726123964
In conversation from techhub.social permalink Attachments