1,521 karma · joined May 25, 2012 (14y ago) · 286 submissions
comment 6y ago · link · parent
Other/better .NET libraries include:
https://github.com/spectresystems/spectre.console
https://github.com/TomaszRewak/C-sharp-console-gui-framework
92.
C# Compile Time Method Execution Generator(github.com ↗)
1 points · by algorithmsRcool · 6y ago · discuss
comment 6y ago · link · parent
For a lot of people, probably the large majority of people, GitHub's (or GitLab's) UI is simpler to work with than a terminal. The overwhelming success and popularity of GitHub has demonstrated the value of it's UI. I just don't see how you could convince the Atom/VSCode generation of developers to go back to mailing lists.
> so, when you work for any company that's not just a startup, you likely have to learn yet another set of tools. And again if you switch the company.
As far as I am concerned, the email workflow is just "another set of tools" too. Except no company I've worked with or worked for has used it.
comment 6y ago · link · parent
I'm sorry, I just disagree. I think there are plenty of devs that agree with you, but I don't.
Some points:
- Working with the UI of GitHub is pretty painless to me.
- On the other hand, I hate dealing with email and prefer tools like slack or even teams to checking and responding to emails. The thought of emailing patch diffs sounds crummy to me after being spoiled on the interactive UI flows of GH pull requests.
- I think the big bifurcation is on the concept of staying in the terminal at all times. I don't develop that way. I also don't send emails from the terminal at all. I primarily work in C# and F# on Windows with VSCode and VS as my daily drivers for editing code. I use the IDE UI to switch branches, merge, rebase and commit most of the time. Perhaps I'm not your target audience.
- I find Git's commands to be rather fiddly most of the time. And why bother remembering complex syntax when I can click familiar buttons. I prefer the ergonomics of the UI even if incurs a mental context switch. But really, that context switch doesn't hurt much compared to the cognitive load of my normal work.
- The last point I'll make is discoverability. Just last week a friend of mine made her first contribution on GitHub in less than 10 minutes. Without needing to look up docs or google workflows. The GitHub UI made a complex concept such as Git branching and merging very simple for her. That alone is worth alot.
comment 6y ago · link · parent
But in a dream world, I would love a device that could help me map out my emotional state over time. My emotional health is a huge component to my well being. I currently manually keep an offline journal of my mood daily and use it to better understand myself, offloading that to a passive monitor would be great.
comment 6y ago · link · parent
If you click the button in the bottom left, it has a lot of features for viewing things like Wind speed, Wave Height, Atmospheric particulates and even Aroura activity.
comment 6y ago · link · parent
Definitely going to test it out.
2 things
1. On windows, your app is getting caught by SmartScreen. I imagine this will fix itself, but fyi.
2. How do I report bugs?
comment 6y ago · link · parent
If I recall correctly, there was another benefit. You could save a multiplayer game by just having all peers dump the current game state to disk and resume it later. Since a big SupCom game could take HOURS this was a great feature.
However, there were 2 issues with SupCom's implementation.
1. It wasn't perfect and sometime hours deep into a big game, you would get a "desync" error and it was unrecoverable.
2. Everyone needed to be able to run the sim at the same speed. So the game could only progress at the speed of the slowest player's computer. And SupCom was VERY compute intensive.
104.
Unishox – Guaranteed Compression for Unicode Short Strings(github.com ↗)
1 points · by algorithmsRcool · 6y ago · discuss
comment 6y ago · link · parent
This line is like something out of a movie.
comment 6y ago · link · parent
A great example is C# 8's Nullable Reference Types feature, touted as (partial) solution to the Null object references. But it isn't air tight, or even water tight. Even if you annotate everything correctly, you can still slip null refs past the compiler.
But F#'s solution to the Null ref issue is much simpler, don't allow nulls at all. Force the developer to use Option<T> to express the absence of value. F# did it correctly the first time and has benefitted ever since.
comment 6y ago · link · parent
History, by way of the C# design team, has validated his opinions. Don Syme has had a massive influence on C# even when one degree removed from it's design. His complaints should be considered carefully.
Mark Seemann has a good write up about his contributions: https://blog.ploeh.dk/2015/04/15/c-will-eventually-get-all-f...
comment 6y ago · link · parent
Well, not really. You cannot stack allocate anything but primitive buffers. So no objects or even strings. So it cannot replace heap allocation for anything but smallish "arrays" of simple types like char and int. This also means you can't use normal structs/value types, only primitives.
> You can also make use of lambdas or implicit IDisposable implementations via helper methods, that generate code similar to memory regions or arenas in C++, but in .NET.
> Finally, many tend to forget that .NET was designed to support C++ as well, so it is also possible to generate MSIL code that ensures deterministic destruction RAII style, naturally this falls into a bit more advanced programming, but it can be hidden away in helper classes.
I'm pretty sure there is no way in C# or in MSIL to explicitly free/deallocate a heap allocated object.
MSIL defines a Newobj opcode, but no Freeobj or anything like it that I have ever seen. You can use custom allocators or unmanaged memory to deterministically allocate and free buffers of structs/values types. But only those that do not include references to managed object references, otherwise you would need to pin and the references yourself and keep the GC aware that there were non-tracked references to those objects. It gets messy fast.
comment 6y ago · link · parent
No groud up re-architecture, no microservice complexity, no crazy high cloud bills for exotic high power VMs. Just upfront capx for your own big iron and the skill to run it.
comment 6y ago · link · parent
Microsoft did something like that in 2015. The high end Lumia's could plug into a dock with a keyboard, mouse and display and show a windows desktop with a start menu and apps.
It was called Windows 10 Continuum and it never caught on.
https://www.theverge.com/2015/11/20/9767266/microsoft-lumia-...
comment 6y ago · link · parent
https://github.com/adam-mcdaniel/free
comment 6y ago · link · parent
The pre-commit code review is our opportunity to stay in the loop and a bulwark against technical debt and silly mistakes before they ever touch a core branch.
comment 6y ago · link · parent
I understand your reasoning in saying this, but please try to understand that being taken seriously as a female founder is much more difficult being taken seriously as a male.
These VCs exist to combat this preexisting inequality.
comment 6y ago · link · parent
Most of the investment in refactoring has been for Roslyn analyzers, which are C#/VB specific. F# has a completely difference compiler framework.
I don't know if the F# compiler service or Roslyn came about first, but they are not compatible with each other.