Better HN
topnewbestaskshowjobs
Log inSign up

algorithmsRcool

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

https://github.com/AlgorithmsAreCool
Submissions

comment 10y ago · link · parent

I had a lot of hope for some wilder C# changes with the .Net core change. But i see a lot of hold back from established codebases. I almost wish we could fork the language to target the Java-esque crowd and the Go/Swift/Scala crowd.

comment 10y ago · link · parent

I think Span really goes way beyond what ArraySegment was intended to do. ArraySegment was just a way of wrapping the very common 3 parameters (Array, offset, length) used in almost any buffer copy operation into a single object.

Span/slice was a much more ambitious type that not only provided fast array segment like access, but also introduced a way to provide typed views into byte[] without the cost of casting or copying memory.

Span<T> is low level enough that they considered calling it Array<T> but decided against it to avoid even more confusion.

If you want to see an example of a API failure it is with System.Tuple<>. That type is effectively being deprecated when ValueTuple comes into the BCL with proper compiler support.

comment 10y ago · link · parent

In addition to the new language features there are some very exciting new APIs being designed at: https://github.com/dotnet/corefxlab

Including a new higher performance/lower allocation text formatting API: https://github.com/dotnet/corefxlab/wiki/System.Text.Formatt...

comment 10y ago · link · parent

ArraySegment<T> is just a array reference with range delimiters. Slice/Span gives you a low overhead, type safe window into a block of memory that can be reinterpreted without allocating new memory. It's implementation involves some IL level pointer hacks to keep it fast.

Joe Duffy's first implmentation of it is here: https://github.com/joeduffy/slice.net

The more recent work for CoreFX is here: https://github.com/dotnet/corefxlab/tree/master/src/System.S...

comment 10y ago · link · parent

I think F# had similar syntax prior to C# with Async Workflows. But C#'s refinement of this syntax seems to have caught a lot more attention.

I can't wait to have Async + ValueTask in C# 7 to help reduce the penalty of Async a bit more.

comment 10y ago · link · parent

Amoungst other things, this article covers Pattern Matching, Record Types and Non-Nullable Reference types. All of which are great features but all of which will likely not be in C# 7 unfortunately due to shipping timelines [0].

0: https://github.com/dotnet/roslyn/blob/master/docs/Language%2...

comment 10y ago · link · parent

I hope then that you have seen this classic Saturn V footage then:

https://www.youtube.com/watch?v=DKtVpvzUF1Y

248.

The Monaco Code Editor(microsoft.github.io ↗)

724 points · by algorithmsRcool · 10y ago · 170 comments

comment 10y ago · link · parent

It is stored on disk, you took the quote out of context.

"The powerful database engine with in-memory capabilities, 'also includes' unique features such as JSON support ..."

Comma and quotes mine

comment 10y ago · link · parent

They also have a video with some samples and an overview.

https://www.youtube.com/watch?v=PRD8LpPvdHI

comment 10y ago · link · parent

You may not be able to answer this, but has memory usage ballooned after replacing the traditional dialogs with xaml ones?

comment 10y ago · link · parent

I'm curious why you think it is inappropriate. I find it very tasteful.

comment 10y ago · link · parent

I'm pretty sure my local tv station WFAA would integrate this into their news broadcast year ago. After the news anchor would finish their story, they would pause and you would hear the tone play. If your computer was setup it would take you to their website to read more about the story.

At least i think i remember this, it was a long time ago.

Edit :

Yep i remembered correctly.

"WFAA is the first TV outlet to introduce the broadcast application, on-air audio cues that send PCs immediately to relevant pages on the Internet without consumer intervention..."

http://adage.com/article/news/cuecat-kindles-controversy/566...

comment 10y ago · link · parent

If you mean hacker in the sense that you want to learn about breaking into computers, then you've come to the wrong place.

Hacker news is a startup/technology oriented news aggregator with a comments section.

Not a den of criminals. (depending on your views about capitalism i suppose)

comment 10y ago · link · parent

Yes there has definitely been a lot of experimentation in the last decade with blending very technical death metal (following Meshuggah's lead) with elements of jazz and melodic elements from prog rock and metal.

Gojira, for example has been carrying the Meshuggah sound forward while Between the Buried and Me, who was born from very technical and chaotic metal, almost devoid of groove, to extremely proggy and theatrical like Dream Theater.

Mastodon moved closer to rock from technical death metal and Opeth once a paragon of death metal, doesn't even use death vocals any more.

For me at least it has been very interesting to see the exchange of ideas.

comment 10y ago · link · parent

I've been bitten by some poor TurboTax UI design before. It took me over an hour to figure out how to remove a particular form it had auto imported from the previous year.

But aside from that i've been pleased with them. But then again my taxes are very simple.

comment 10y ago · link · parent

Is this really the case? Can't most people can just file with a 1040(A or EZ) and be done pretty quickly. I was under the impression that you only have to break out the crazy worksheets or software if you want to get fancy with your deductions or take advantage of tax credits.

You can save alot of money this way, but really it's the deductions that are the complication (and the audit risk...) but how can you simplify the deduction process, you have to get specific by the very nature of the task.

comment 10y ago · link · parent

Minor spoilers for others

The first ship sent by the moties (the aliens in the book) uses this exact type of propulsion. A huge laser pushing a solar sail ship across space. It is not a new idea i think was the GP's point.

comment 10y ago · link · parent

My technique for windows since vista has been :

1) Plug both disks into a host machine (or boot up off of a WinPE or WinRE disk).

2) Mount the source them as D:\ in this example

3) Format the destination disk in diskpart and mount as E:\ (be sure to mark active and format as a primary partition)

4) Run robocopy D:\ E:\ /x /e /COPYALL /zb /r:1 /w:0 (or something similar

5) wait...

6) verify that the copy didn't miss anything

7) Run bootsect e:\ /nt60

8) Try to boot from the new drive, if it doesn't work then try 'bootmgr /rebuildbcd' and fixboot

it's not sector level, but i don't think it really needs to be, just mirror at the file level and fix up the boot sector. I'm not sure if it is dangerous but it works for me and it doesn't need 3rd party tools.

comment 11y ago · link · parent

I would be inclined to agree.....but the treaty is pretty ironclad as long as Turkey is a full member. Which they have been since 1952.

comment 11y ago · link · parent

Stepping over an invisible line has much bigger consequences if you are piloting a powerful military aircraft and acting as agents of the foreign and non-friendly state.

comment 11y ago · link · parent

Open war between Russia and Turkey would be defacto war with the United States and the rest of NATO due to Article 5 of the NATO charter.

That doesn't really answer your question but hopefully gives some context.

comment 11y ago · link · parent

Can i just say Thank You. As a software developer and US citizen, I am immensely grateful for the work that 18F and the USDS are doing for this country's digital infrastructure.

comment 11y ago · link · parent

It's a lot easier thank cooking or preparing most foods and very portable. I doubt many people are trying to live off the stuff exclusively.

comment 11y ago · link · parent

According to microsoft's bulletin disabling kernel caching will avoid the vulnerability.

* I should cite this : https://technet.microsoft.com/library/security/ms15-034

See section Vulnerability Information > Workarounds

comment 11y ago · link · parent

She said "Stage 1 FTS has been safed".

FTS is the flight termination system. I believe that is a self destruct mechanism in case things go very wrong. They arm it before liftoff and disable it after it's well over the ocean.

comment 11y ago · link · parent

Not quite, WPF and winforms are still out in the cold along with some other things.

But for sever-side code, .net core + asp.net will get the job done.

comment 11y ago · link · parent

I've used winrm for some VM config scripts. The ps script would clone a VM from a base image, boot it, then remote into it to config network and other things.

It was a bit arcane to set up but mainly it was slow, like, really slow. All the SOAP serialization is terrible for performance but it is flexible and it did work.

comment 11y ago · link · parent

Is that actually true? MS has demoed Windows IoT with a UI on minimal devices already. Both ARM and x86. I don't know if the dragonboard 410c is in a different class than the pi2 however.

Take a look on Don Box's presentation at WinHEC from last month. Device talk stats about ~40 mins, device demo starts at ~44 mins.

http://channel9.msdn.com/Events/WinHEC/2015/Developing-for-t...

comment 11y ago · link · parent

I am far from an expert on the matter, but i recall the case was made that acceptable color reproduction could be achieved with lower bitrates by using 10-bit encoding. It was about file size, i don't think anyone in the fansubing community expected people to have professional monitors.
1
678910