Tumgik
#dnx runtime
macleod · 3 months
Text
I've spent the last two or three years in various ways developing my own robotics operating system, since my modular platforms don't tend to mesh well within any current system.
Now it's infected me, given me obvious brainworms, and now I'm starting work on developing a new type of meta programming language. Something I once swore I would never attempt again.
Sometimes, just sometimes, I really despise the amount of work my brain forces on me.
It's not technically a language per se (thus the "meta" addition), we have enough of those, especially the ones that are specialized. It's more akin to a container (a stripped down immutable linux-base) with some tight and specific script and task automation, integrated ephemeral database, and memory management.
In a weird way it is an operating system, but more along the lines of a virtualized runtime manager. I've been dreaming of it for the past decade, similar to Erlang in a lot of ways, and absolutely not in a lot of different ways.
I might as well build a rather dreadful version of it and get it out of my head. Hopefully it speeds up my development time, since it should stop me recreating the same core systems in every project.
And yes, it will be open sourced because it's going to help me in an insane number of ways and should be a new way of programming that a lot of other people would love (and hate).
7 notes · View notes
itsjohnharis-blog · 5 years
Text
What is ASP.NET support application?
What is ASP.NET support application?
One riddle in ASP.NET 5 that individuals are getting some information about are ASP.NET 5 reassure applications. We have web applications running on some web server – what is the purpose of new sort of direction line applications that allude by name to web structure? Here's my clarification.
Tumblr media
What we have with ASP.NET 5?
CoreCLR – negligible subset of .NET Framework that is ~11MB in size and that supports genuine next to each other execution. Indeed, your application can indicate precise variant of CLR it needs to run and it doesn't struggle with another forms of CLR on same box.
DNX runtime – in the past named as K runtime, comfort based runtime to oversee CLR renditions, reestablish bundles and run directions that our application characterizes.
Structure level reliance infusion – this is something we don't have with exemplary comfort applications that have static section point yet we have it with ASP.NET web development services reassure applications (they have additionally technique Main yet it's not static).
More freedom from Visual Studio – it's simpler to construct and run applications in assemble and ceaseless mix servers as there's no need (or less need) for Visual Studio and its parts. Applications can characterize their directions for various things like producing EF relocations and running unit tests.
Additionally ASP.NET 5 is progressively autonomous from IIS and can be facilitated by way littler servers. Microsoft furnishes with ASP.NET 5 basic web audience server and new server considered Kestrel that depends on libuv and can be utilized additionally on Unix-based conditions.
Application directions
Your application can characterize directions that DNX runtime can peruse from your application design document. Every one of these directions are really ASP.NET comfort applications that keep running on order line with no requirement for Visual Studio intsalled on your case. When you run order utilizing DNX then DNX is making occasion of class and it searches for technique Main(). I return to those directions in future posts.
System level reliance infusion
What we don't have with exemplary comfort applications is system level reliance infusion. I believes it is difficult to execute it when application is really a class with one static section point. ASP.NET reassure applications can be increasingly mindful of specialized condition around them by supporting reliance infusion. Alse we can take our reassure program to all conditions where CoreCLR is running and we don't need to stress over stage.
CoreCLR can take our ASP.NET applications to various new conditions. On Azure cloud we will conceivably observe that Webjobs can be worked as ASP.NET support applications and ASP.NET Web Development Company worked for CoreCLR.
As CoreCLR is extremely little – recall, simply 11MB – I'm practically certain that ASP.NET 5 and support applications will discover their approach to little gadgets like RaspberryPi, switches, wearables, etc. It's conceivable we needn't bother with web server support in those situations yet despite everything we need use CoreCLR from comfort. Perhaps this market isn't huge today however it will be colossal tomorrow.
Wrapping up
Although the name "ASP.NET reassure application" is small confounding we can think about those applications as support applications for DNX. At present Custom application development company,the fundamental use for those applications are ASP.NET 5 directions yet by my hypotheses we will see substantially more situations for those applications in not so distant future.
1 note · View note
just4programmers · 7 years
Text
Lightweight bundling, minifying, and compression, for CSS and JavaScript with ASP.NET Core and Smidge
Yesterday I blogged about WebOptimizer, a minifier that Mads Kristensen wrote for ASP.NET Core. A few people mentioned that Shannon Deminick also had a great minifier for ASP.NET Core. Shannon has a number of great libraries on his GitHub https://github.com/Shazwazza including not just "Smidge" but also Examine, an indexing system, ClientDependency for managing all your client side assets, and Articulate, a blog engine built on Umbraco.
Often when there's more than one way to do things, but one of the ways is made by a Microsoft employee like Mads - even if it's in his spare time - it can feel like inside baseball or an unfair advantage. The same would apply if I made a node.js library but a node.js core committer also made a similar one. Many things can affect whether an open source library "pops," and it's not always merit. Sometimes it's locale/location, niceness of docs, marketing, word of mouth, website. Both Mads and Shannon and a dozen other people are all making great libraries and useful stuff. Sometimes people are aware of other projects and sometimes they aren't. At some point a community wants to "pick a winner" but even as I write this blog post, someone else we haven't met yet is likely making the next great bundler/minifier. And that's OK!
I'm going to take a look at Shannon Deminck's "Smidge" in this post. Smidge has been around as a runtime bundler since the beginning of ASP.NET Core even back when DNX was a thing, if you remember that. Shannon's been updating the library as ASP.NET Core has evolved, and it's under active development.
Smidge supports minification, combination, compression for JS/CSS files and features a fluent syntax for creating and configuring bundles
I'll start from "dotnet new mvc" and then:
C:\Users\scott\Desktop\smidgenweb>dotnet add package smidge Writing C:\Users\scott\AppData\Local\Temp\tmp325B.tmp info : Adding PackageReference for package 'smidge' into project 'C:\Users\scott\Desktop\smidgenweb\smidgenweb.csproj'. log : Restoring packages for C:\Users\scott\Desktop\smidgenweb\smidgenweb.csproj... ...SNIP... log : Installing Smidge 3.0.0. info : Package 'smidge' is compatible with all the specified frameworks in project 'C:\Users\scott\Desktop\smidgenweb\smidgenweb.csproj'. info : PackageReference for package 'smidge' version '3.0.0' added to file 'C:\Users\scott\Desktop\smidgenweb\smidgenweb.csproj'.
Then I'll update appSettings.json (where logging lives) and add Smidge's config:
{ "Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Warning" } }, "smidge": { "dataFolder" : "App_Data/Smidge", "version" : "1" } }
Let me squish my CSS, so I'll make a bundle:
app.UseSmidge(bundles => { bundles.CreateCss("my-css", "~/css/site.css"); });
I refer to the bundle by name and the Smidge tag helper turns this:
<link rel="stylesheet" href="http://feeds.hanselman.com/~/t/0/0/scotthanselman/~my-css" />
into this
<link href="http://feeds.hanselman.com/~/t/0/0/scotthanselman/~https://www.hanselman.com/sb/my-css.css.v1" rel="stylesheet" />
Notice the generated filename with version embedded. That bundle could be one or more files, a whole folder, whatever you need.
Her eyou can see Kestral handling the request. Smidge jumps in there and does its thing, then the bundle is cached for the next request!
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1] Executing action method Smidge.Controllers.SmidgeController.Bundle (Smidge) with arguments (Smidge.Models.BundleRequestModel) - ModelState is Valid dbug: Smidge.Controllers.SmidgeController[0] Processing bundle 'my-css', debug? False ... dbug: Smidge.FileProcessors.PreProcessManager[0] Processing file '/css/site.css', type: Css, cacheFile: C:\Users\scott\Desktop\smidgenweb\App_Data\Smidge\Cache\SONOFHEXPOWER\1\bb8368ef.css, watching? False ... dbug: Smidge.FileProcessors.PreProcessManager[0] Processed file '/css/site.css' in 19ms dbug: Smidge.Controllers.SmidgeController[0] Processed bundle 'my-css' in 73ms info: Microsoft.AspNetCore.Mvc.Internal.VirtualFileResultExecutor[1] Executing FileResult, sending file
The minified results are cached wherever you want (remember I said App_Data):
This is a SUPER simple example. You can use Smidge's fluent interface to affect how an individual bundle is created and behaves:
bundles.CreateJs("test-bundle-3", "~/Js/Bundle3") .WithEnvironmentOptions(BundleEnvironmentOptions.Create() .ForDebug(builder => builder .EnableCompositeProcessing() .EnableFileWatcher() .SetCacheBusterType<AppDomainLifetimeCacheBuster>() .CacheControlOptions(enableEtag: false, cacheControlMaxAge: 0)) .Build() );
Smidge is unique in its Custom Pre-Processing Pipeline. Similar to ASP.NET Core itself, if there's anything you don't like or any behavior you want to change, you can.
I'm sure Shannon would appreciate help in Documentation and Open Issues, so go check out Smidge at https://github.com/Shazwazza/Smidge!
Sponsor: Check out JetBrains Rider: a new cross-platform .NET IDE. Edit, refactor, test and debug ASP.NET, .NET Framework, .NET Core, Xamarin or Unity applications. Learn more and download a 30-day trial!
© 2017 Scott Hanselman. All rights reserved.
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
0 notes