Better HN
topnewbestaskshowjobs
Log inSign up

algorithmsRcool

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

https://github.com/AlgorithmsAreCool
Submissions

comment 9y ago · link · parent

Ah, thank you. I read Permutation City in January right after I read Neuromancer and apparently got my wires crossed.

comment 9y ago · link · parent

If this is an interesting topic, give "Permutation City" by "Greg Egan" a read. It involves a digitized character that intentionally modifies itself in order to avoid unhappiness.

comment 9y ago · link · parent

I've been following the peachpie project for a while. The effort they put in is very impressive.

They choose to heavily modify the C#/VB compiler (Roslyn) to handle php syntax. Microsoft should be investing time into helping them succeed, it would be great to see the Roslyn compiler platform become more broadly used.

comment 9y ago · link · parent

> using the Oniguruma regret engine

I'm surprised I've never seen that typo for regex before. It's wonderful.

215.

Early proposal for Type Classes in C#(github.com ↗)

1 points · by algorithmsRcool · 9y ago · discuss

comment 9y ago · link · parent

For those interested in more details about .NET garbage collector here is some reading.

Garbage Collection Overview

https://msdn.microsoft.com/en-us/library/0xy59wtx(v=vs.110)....

Fundamentals of garbage collection

https://msdn.microsoft.com/en-us/library/ee787088(v=vs.110)....

Visualising the .NET Garbage Collector

http://mattwarren.org/2016/06/20/Visualising-the-dotNET-Garb...

Clr Book of the runtime : Garbage Collection

https://github.com/dotnet/coreclr/blob/master/Documentation/...

Maoni Stephen's Blog

https://blogs.msdn.microsoft.com/maoni

https://blogs.msdn.microsoft.com/maoni/2004/06/15/using-gc-e...

https://blogs.msdn.microsoft.com/maoni/2004/09/25/using-gc-e...

https://blogs.msdn.microsoft.com/maoni/2004/12/19/using-gc-e...

https://blogs.msdn.microsoft.com/maoni/2005/05/06/using-gc-e...

There is also a refactoring effort to standardize the GC<->EE interface

https://github.com/dotnet/coreclr/projects/3

I would link to the source code of the GC itself, but it's a single 35KSLOC file.

comment 10y ago · link · parent

In particular if you have left the prompt window untouched for a few hours and it has been paged out. Just pressing <tab> to complete a file name will hang for 3-6 seconds on my computer while PS wakes back up.

CMD is always instantaneous.

I realize that PS is doing a lot more work to match commands but sometimes simple is all that is needed.

comment 10y ago · link · parent

you can run "powershell" from a CMD prompt and "cmd" from a powershell prompt.

You can also nest prompts to switch context between them.

comment 10y ago · link · parent

That was actually how I found out about Teams to post this. Slack didn't do themselves any favors with that post.

220.

Microsoft Teams, the new chat-based workspace in Office 365(products.office.com ↗)

300 points · by algorithmsRcool · 10y ago · 240 comments

comment 10y ago · link · parent

From a consumption standpoint I could see that. But from a content creation standpoint HN and Reddit lack the expertise, discretion and attention span to provide in-depth reporting and investigation that is critical to uncovering and discouraging corruption.

comment 10y ago · link · parent

I also got a call too, I knew it was a scam as soon as he asked for my name and address. I tried to string him on and get some information but he hung up on me. I called back and he answered "Hello IRS" and hung up a moment later.

I had no idea this scamming was so prevalent. I feel like I should check with my mother to see if she got any strange calls.

comment 10y ago · link · parent

This article is from 2013.

comment 10y ago · link · parent

They are using the FPGAs for specializing network hardware on the fly. This lets them decrease latency across their network as well as allow centralized management.

Edit:

It looks like they are also allowing applications to use the FGPA-FPGA communication layer to reduce latency for distributed systems.

> "All network traffic is routed the FPGA, allowing it to accelerate high-bandwidth flows. An independent PCIe connection to the host is also provided, allowing the FPGA to be used as a local accelerator..."

> "By enabling the FPGAs to generate and their own networking packets independent of the each and every FPGA in the datacenter can reach every other one (at a scale of hundreds of thousands) in small number of microseconds, without any intervening. This capability allows hosts to use remote FPGAs for with low latency, improving the economics of the deployment, as hosts running services that do not their local FPGAs can donate them to a global pool and value which would otherwise be stranded."

comment 10y ago · link · parent

What is wrong with PCIe? Hasn't it been extremely successful?

comment 10y ago · link · parent

I just tried it. You can drag images into the doc and it will show the image WYSIWYG, but the image url looks to be an absolute path, not a relative one.

It does not move the image.

comment 10y ago · link · parent

You do not have to type the markdown. You can press Ctrl+B and bold text. You can right click and insert a Table and fill it in as WYSIWYG.

You can always type markdown but you don't have to.

Pressing Ctrl + / will toggle the whole doc to pure markdown so you can tweak for a second and then flip back to WYSIWYG.

comment 10y ago · link · parent

No, the setting is Preferences > Editor > Default copy behavior

When i turn it off (default) and copy/paste into notepad it only pastes plain text with no markdown.

When i turn it on and copy paste into notepad it retains the markdown formatting characters (*'s, ```'s and etc...)

Pasting into MS Word (a rich text editor) always pastes as rich text regardless of the setting

comment 10y ago · link · parent

For me it works well because of:

- Spellcheck

- WYSIWYG for complex/annoying markdown (try adding a column to a 20 row table in markdown unassisted)

- Nice unobtrusive typing experience

- Easy toggle switch to raw markdown (Ctrl + /)

- Syntax highlighting for code blocks

- Familiar hotkeys for formatting (Ctrl + B for bold, Ctrl + 1 for H1, Ctrl + 2 for H2 etc...)

comment 10y ago · link · parent

- Saving is as plain markdown. But you can export to a variety of formats (they use pandoc)

- There is a setting for copy/paste to use markdown vs plain text

- Pasting into word would be as HTML since word is rich text

comment 10y ago · link · parent

Makes sense, Typora uses Pandoc under the covers for it's import/export.

I use vscode for my markdown editing also, but the lack of help with tables and other formatting hurt along with the lack of a offline spellchecker makes vscode a bit painful.

comment 10y ago · link · parent

According to their docs they use Github-flavored markdown. But they also apparently support lots of extensions to it.

See here http://support.typora.io/Markdown-Reference/

And here for other docs http://support.typora.io/

233.

Typora – A cross platform markdown editor(typora.io ↗)

338 points · by algorithmsRcool · 10y ago · 139 comments

comment 10y ago · link · parent

I'm not sure how I managed to screw up posting that link. Thank you.

If any mods are around, could you correct the story link please?

235.

Typora – A cross platform markdown editor

5 points · by algorithmsRcool · 10y ago · 3 comments

comment 10y ago · link · parent

Although with c# 6.0 (current release) you can simplify that to:

  public class Complex {
    public double I { get; } 
    public double J { get; }
    public Complex(double i, double j) {
      I = i;
      J = j;
    }
  }

comment 10y ago · link · parent

Neuromancer?

comment 10y ago · link · parent

They were always going to charge for it. The first time it was announced they stated it was going to be free to upgrade for the first year.

comment 10y ago · link · parent

I highly doubt that Raymond Chen, a 24 year veteran of Microsoft and WinAPI / NT kernel expert, is shilling for marketing kudos.

He probably just thought it was a neat side effect.

1
678910