Better HN
topnewbestaskshowjobs
Log inSign up

algorithmsRcool

1,521 karma · joined May 25, 2012 (14y ago) · 286 submissions

https://github.com/AlgorithmsAreCool
Submissions

comment 6y ago · link · parent

I tried to use Gui.cs and wasn't able to. It has a lot of rough edges and I had to move on because it wasn't well fleshed out.

Other/better .NET libraries include:

https://github.com/spectresystems/spectre.console

https://github.com/TomaszRewak/C-sharp-console-gui-framework

https://github.com/elw00d/consoleframework

92.

C# Compile Time Method Execution Generator(github.com ↗)

1 points · by algorithmsRcool · 6y ago · discuss

comment 6y ago · link · parent

Fair point, I've strayed from the topic at hand.

comment 6y ago · link · parent

> I think a lot of people wrongly assume that GitHub is so "easy" that you don't actually have to spend any time to learn how to use it.

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

For what it is worth, I watched the video.

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

I wouldn't trust Amazon or any other tech giant with data about my emotions, that information is more personal to me than the contents of my day to day conversations or any other biometrics they might be scraping. What an unimaginable panopticon we are entering into.

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

I've always liked https://earth.nullschool.net/

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

I have a hard time taking this seriously. Email is a pain to use compared to a dedicate feature UI.

I think the real problem is the need for a standardized pull request protocol that people can wrap. Then let people use email, a website, an API or whatever they want.

comment 6y ago · link · parent

Think powershell, but built in rust, posix first and better at processing data(xml, csv, json, ...)

comment 6y ago · link · parent

Thank you for following up. I like the product. The UX is very nice and the workflow adds alot of value for me.

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

I understand the emphasis on getting users to sign up, but I wanted to read more to see where this might fit into my workflow.

- Does it support markdown?

- Can I export my notes?

- Are there any to-do list features?

comment 6y ago · link · parent

I couldn't count the number of hours I spent playing that game with friends. Never played anything else like it!

comment 6y ago · link · parent

I recall that Supreme Commander used the same technique, a fully deterministic sim run in lockstep by all multiplayer peers. For it's era, it had very very high scale for an RTS game. (thousands of units and enormous game maps (the biggest of which took 15+ mins to send naval units across)

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

> After returning from a visit with her in Budapest, Dirac wrote, “I felt very sad leaving you and still feel that I miss you very much. I do not understand why this should be, as I do not usually miss people when I leave them.”

This line is like something out of a movie.

comment 6y ago · link · parent

C# is pretty great, I use it everyday. But if you've even spent significant time in F#, you return to C# land asking some of the same questions Don does.

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

No it does not, unless the discarded value is a Task in an async method. (or sometimes an IDisposable depending on what analyzers you have running)

comment 6y ago · link · parent

> This guy is the designer of F# complaining that C# is not more like F#.

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

It is entirely about taste except for his mention of correctness between 'base' and 'this'.

comment 6y ago · link · parent

Epic might not be the little guy, but Apple is worth almost $2 Trillion. That is a pretty big brother.

comment 6y ago · link · parent

But that object is not a string, it is char buffer. You cannot directly substitute one for the other.

Yes I realize they can be used to store the same data, but you've defined a new type that is incompatible with an actual string object.

comment 6y ago · link · parent

> You can stack allocate objects, so those are alive just until the end of the stack.

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

I think that is the thesis of StackOverflow's devs. You can vertically scale easier and much further than what most people think.

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

> I remain flabbergasted that today, in 2020, phones don't blend into desktop and laptop computers in any significant manner.

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

I'm pretty astounded by his productivity!. This isn't even his first programming language.

https://github.com/adam-mcdaniel/free

https://github.com/adam-mcdaniel/xasm

https://github.com/adam-mcdaniel/tsar

comment 6y ago · link · parent

I don't know what kind of products these strategies work well on. I've only had experience with larger, older systems where multiple devs are making changes to fix specific issues that the other devs are not completely in the loop on. We might know dev A is working on this ticket, but we are busy with our own tickets and can't always have collaborative design reviews for every item. Maybe that isn't ideal, but it is reality for a lot of teams.

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

> There's a significant number of VCs and funds which only invest in female founders, which is a huge advantage.

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

This is another tragedy of the bifurcation of the F# and greater .NET community.

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.

comment 6y ago · link · parent

F# is the language that I keep coming back to. And as the paper notes, it has kept up well with the rapidly changing landscape of .NET Core and newer defacto standards introduced by modern C#.

comment 6y ago · link · parent

I don't understand, wouldn't a concentrated social environment suggest very high infection rates, which aligns with the GP?
12345
10