HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
joeduffy
slice.net
C#2016–2016
joeduffy / slice.net

slice.net

A simple C# type for working with contiguous buffers.

2Distinct people
2Mentions
0Explicit recommenders
119GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A simple C# type for working with contiguous buffers.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2016-06-01 11:36:00 UTC to 2016-06-23 16:29:31 UTC.

012016-06-01 00:00:00 UTC to 2016-06-02 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 12016-06-02 00:00:00 UTC to 2016-06-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-03 00:00:00 UTC to 2016-06-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-04 00:00:00 UTC to 2016-06-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-05 00:00:00 UTC to 2016-06-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-06 00:00:00 UTC to 2016-06-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-07 00:00:00 UTC to 2016-06-08 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-08 00:00:00 UTC to 2016-06-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-09 00:00:00 UTC to 2016-06-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-10 00:00:00 UTC to 2016-06-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-11 00:00:00 UTC to 2016-06-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-12 00:00:00 UTC to 2016-06-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJun 122016-06-13 00:00:00 UTC to 2016-06-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-14 00:00:00 UTC to 2016-06-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-15 00:00:00 UTC to 2016-06-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-16 00:00:00 UTC to 2016-06-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-17 00:00:00 UTC to 2016-06-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-18 00:00:00 UTC to 2016-06-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-19 00:00:00 UTC to 2016-06-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-20 00:00:00 UTC to 2016-06-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-21 00:00:00 UTC to 2016-06-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-22 00:00:00 UTC to 2016-06-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-06-23 00:00:00 UTC to 2016-06-24 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 23

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 12016-06-01 00:00:00 UTC2016-06-02 00:00:00 UTC101
Jun 22016-06-02 00:00:00 UTC2016-06-03 00:00:00 UTC000
Jun 32016-06-03 00:00:00 UTC2016-06-04 00:00:00 UTC000
Jun 42016-06-04 00:00:00 UTC2016-06-05 00:00:00 UTC000
Jun 52016-06-05 00:00:00 UTC2016-06-06 00:00:00 UTC000
Jun 62016-06-06 00:00:00 UTC2016-06-07 00:00:00 UTC000
Jun 72016-06-07 00:00:00 UTC2016-06-08 00:00:00 UTC000
Jun 82016-06-08 00:00:00 UTC2016-06-09 00:00:00 UTC000
Jun 92016-06-09 00:00:00 UTC2016-06-10 00:00:00 UTC000
Jun 102016-06-10 00:00:00 UTC2016-06-11 00:00:00 UTC000
Jun 112016-06-11 00:00:00 UTC2016-06-12 00:00:00 UTC000
Jun 122016-06-12 00:00:00 UTC2016-06-13 00:00:00 UTC000
Jun 132016-06-13 00:00:00 UTC2016-06-14 00:00:00 UTC000
Jun 142016-06-14 00:00:00 UTC2016-06-15 00:00:00 UTC000
Jun 152016-06-15 00:00:00 UTC2016-06-16 00:00:00 UTC000
Jun 162016-06-16 00:00:00 UTC2016-06-17 00:00:00 UTC000
Jun 172016-06-17 00:00:00 UTC2016-06-18 00:00:00 UTC000
Jun 182016-06-18 00:00:00 UTC2016-06-19 00:00:00 UTC000
Jun 192016-06-19 00:00:00 UTC2016-06-20 00:00:00 UTC000
Jun 202016-06-20 00:00:00 UTC2016-06-21 00:00:00 UTC000
Jun 212016-06-21 00:00:00 UTC2016-06-22 00:00:00 UTC000
Jun 222016-06-22 00:00:00 UTC2016-06-23 00:00:00 UTC000
Jun 232016-06-23 00:00:00 UTC2016-06-24 00:00:00 UTC101

What Hacker News says

2 sources
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...
In C# 7.0 – What to Expect
I'm not sure if you could replicate System.String, because the oddity is happening at the metadata level - apart from special cases like String, .Net types must be compile-time constant length (if I remember correctly). However, at the instruction level you can do some pretty awesome stuff. This slice[1] library is able to verifiably and safely grab a slice of data out of any arbitrary structure by using a MSIL feature that was invented for C++/CLR. The call site[2] is not unsafe. [1]: https://github.com/joeduffy/slice.net/blob/master/src/PtrUti... [2]: https://github.com/joeduffy/slice.net/blob/master/src/Slice....
In Strings and the CLR – A Special Relationship

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.