# shouldn't

Published articles for shouldn't.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Sandboxing landscape

DevFeed: [Sandboxing landscape](<https://devfeed.tech/articles/sandboxing-landscape-38962.md>)

Original publisher: [Read original article](<https://idea.popcount.org/2017-03-28-sandboxing-landscape>)

Author: Marek

Published: 2017-03-27T22:00:00Z

Content type: article

Language: en

Sources: [Marek Majkowski](<https://devfeed.tech/sources/marek-majkowski.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [virtualization](<https://devfeed.tech/topics/virtualization.md>), [Programming language](<https://devfeed.tech/topics/programming-language.md>), [Process](<https://devfeed.tech/topics/process.md>)

Tags: [isolation](<https://devfeed.tech/tags/isolation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [lua](<https://devfeed.tech/tags/lua.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [sandboxing](<https://devfeed.tech/tags/sandboxing.md>), [shouldn-t](<https://devfeed.tech/tags/shouldn-t.md>), [virtualization](<https://devfeed.tech/tags/virtualization.md>)

### AI overview

This article surveys four approaches to isolating untrusted third-party code: programming-language runtimes, operating-system processes, software fault isolation, and virtual machines. It discusses requirements such as multi-tenancy, scheduling, memory limits, and restricting privileged operations, then examines Lua and JavaScript as examples.

### Source excerpt

Sandboxing landscape Some time ago I started wondering - would it be possible for a CDN to run customer code on the edge servers? I read and asked around, over time I got acquainted to what is and what is not technically possible. But that didn't bring me closer to an useful answer. Fortunately exploring this subject has been enormous fun. In this blog post I'll describe my findings so far.

## How Agencies & Freelancers Should Do Web Hosting

DevFeed: [How Agencies & Freelancers Should Do Web Hosting](<https://devfeed.tech/articles/how-agencies-freelancers-should-do-web-hosting-31321.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/web-hosting-for-agencies-freelancers>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-03-09T07:10:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [hosting](<https://devfeed.tech/topics/hosting.md>), [Web](<https://devfeed.tech/topics/web.md>), [Server](<https://devfeed.tech/topics/server.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [afterthought](<https://devfeed.tech/tags/afterthought.md>), [article](<https://devfeed.tech/tags/article.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [insights](<https://devfeed.tech/tags/insights.md>), [shouldn-t](<https://devfeed.tech/tags/shouldn-t.md>), [useless](<https://devfeed.tech/tags/useless.md>), [web-hosting](<https://devfeed.tech/tags/web-hosting.md>), [webserver](<https://devfeed.tech/tags/webserver.md>), [websites](<https://devfeed.tech/tags/websites.md>)

### AI overview

This article explains why agencies and freelancers should treat web hosting as an important project decision. It compares shared, managed, and VPS hosting and argues that VPS hosting is often the best choice, while criticizing shared hosting for its cost and reliability tradeoffs.

### Source excerpt

Websites are useless without a webserver hosting it. Yet web hosting is often an afterthought. It shouldn't be.

## Value Types and Memory Usage

DevFeed: [Value Types and Memory Usage](<https://devfeed.tech/articles/value-types-and-memory-usage-33400.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2012/11/28/sorting-on-value-types>)

Published: 2012-11-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [C#](<https://devfeed.tech/topics/csharp.md>), [Algorithms, Complexity](<https://devfeed.tech/topics/algorithms-complexity.md>), [Code](<https://devfeed.tech/topics/code.md>), [Sorting](<https://devfeed.tech/topics/sorting.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [memory](<https://devfeed.tech/tags/memory.md>), [shouldn-t](<https://devfeed.tech/tags/shouldn-t.md>), [statement](<https://devfeed.tech/tags/statement.md>)

### AI overview

This article explains why sorting C# value types can use more memory than sorting reference types. Copies, boxing, and unboxing contribute to the overhead, although passing values by reference or using a custom sorting algorithm can avoid some additional memory use.

### Source excerpt

Last week a respected colleague mentioned off hand that sorting on a value type takes a lot of memory in C#. Interested, I looked into this to see why/when this is true. Value types (using the struct keyword) are always passed by value, unlike reference types (class keyword) which are always passed by reference. This means that every time you pass them into a method, the whole value is copied; whereas with reference types, only the reference (pointer) is copied. Pointers are 4 to 8 bytes, so his original statement is only of concern if your value types are larger than that. Some such types are DateTime, Guid, and BsonObjectId. Some people like to think of value types as being allocated on the stack (versus the heap). In C#, this is irrelevant. The CLR allocates value and reference types wherever it feels like. Usually, local variables and parameters are stored on the stack (or registers) and values that are members of a class are usually allocated on the heap. It was done this way because the folks who wrote the CLR believe they can do a good enough job of optimizing stack and heap usage, so you shouldn't worry about it. If you're in C#, you shouldn't care where they're allocated. If you're doing something that requires you to care, you need to either break into an unsafe C# code block or C++. As for his actual statement - yes, using Base Class Library algorithms for sorting on value types will take more memory for value types than reference types because it has to copy values. However, there are exceptions to this. You can always write method parameters with the ref keyword so they're passed by reference. This would fix the problem of copying, but the all of the BCL classes* are written generically by using IComparable or some other interface. When you cast a value type like an Int32 to an interface like IComparable, it has to be boxed into a reference type. When boxing, the CLR allocates a managed reference type object and then copies the Int32 value into the mana