The Ada standard library is massive and is included in the exception. There are "internal" "GNAT specific" packages which you can include in your project but there are not really any you need or would use in a general sense - there are even warnings you get at compile-time telling you that you are using something GNAT specific and are prefixed with GNAT.* instead of Ada.
"massive" meaning a ~300 MB compressed download, compared to a 20mb C++ with stdlib. it's even more more massive than the biggest professional lisp packages. Only Microsoft and Apple Tools can compete with that kind of massiveness, but they ship a lot of crap with it. Ada/Spark is an extremely nice and easy to use framework (if you forget the python crap that comes with it), and I would hire any Spark or ATS or F* programmer over a C++ or Java programmer in a minute. no questions asked.
This example of integer overflow is also very common amongst C/C++ programmers. Almost nobody cares about overflows or 2gb boundaries. Nobody knows how to efficiently use adc ("add with carry") or how to check for it at compile-time. spark does it for you automatically.
I've spent a large percentage of my life in bookstores and I have never seen an Ada book. I've never met an Ada programmer or met someone who knew an Ada programmer. Is there any proof that the language actually existed? Maybe it was a CIA plot to trick the commies into wasting their time.
Smalltalk, Concurrent Pascal, Oberon, Concurrent C, ML, Eiffel, *Lisp, Algol, Ada, and many more on the library section available to Master/Phd students.
Very interesting. I'm very disappointed at the state of my faculty's library (FCUL). Even landmark works by the most influential of computer scientists are missing, being in their place endless copies of mindless "for dummies" garbage from the 90s and 00s.
There is the theory it was a Cold War weapon of economic warfare. But the US government employs a lot of Ada programmers so it seems to have backfired.
That's because Ada's entire usage is corporate environments. If textbooks do exist, then they would be marketed to companies not consumers, as that's who would be paying.
Oh my, each app is going to be 20 mb bigger! This mattered 30 years ago, but now I would say we have a huge problem for end users with all of these "Package managers" and "dependency managers" getting tangled up because there are 5 versions of Perl needing 3 versions of Python and so on... I would be a much more happy Linux user if was able to drag and drop an exe. 100mb be damned
This seems easier in both Windows and OS X. On both, a native application gets its own directory, and will first look in there for any shared libraries it needs. It gives you a nice middle ground between static linking everything and dynamic linking everything that still avoids the "we have to choose between pervasive system-wide dependency hell and Dockerizing everything" situation that seems to exist on Linux.
True for Windows, but not true for macOS. See DYLD_FALLBACK_LIBRARY_PATH in https://www.unix.com/man-page/osx/1/dyld/ -- the dynamic linker will look for the library at the proposed absolute or macro-expanded path (specified in the load command), and failing that look for the leaf name under a few fallback paths:
$(HOME)/lib:/usr/local/lib:/lib:/usr/lib
You'll notice that those fallback paths do not include any location relative to the application. It's actually pretty difficult to get the object code to lookup libraries relative to its own directory. Explanation here:
The program sets LD_RUNPATH_SEARCH_PATHS which bakes a list of paths into the binary. This can include relative paths as well as @loader_path and @executable_path. eg a plugin bundled with an app can specify @executable_path/../../Frameworks to reference the parent bundle's Frameworks directory. Libraries can also add search paths to help locate their dependencies. @loader_path will expand relative to the library that actually has the dependency.
Any linked library with a DYLD name of @rpath/ will be searched in those locations.
At build time the linker checks each library for its DYLD name and bakes that name into the final binary. Making sure all of your non-system dependencies are @rpath and relative to your app bundle is what makes it a "Relocatable" application.
Out of curiosity, what stopped you from setting the -install_name flag when you built the libraries you are bundling with your juicysfplugin plugin? That's the standard mechanism for building app-relative libraries and wasn't listed at all under "Alternatives to manually rewriting dynamic links"
You're thinking of "application" as a single binary, which is unnecessary. You wrap up all of core-utils into a single environment and launch the shell.
If you want the space saving characteristics of shared libraries but your OS simply doesn't support that, you could probably do the busybox trick of rolling a bunch of binaries into one and changing which codepath gets executed based on which name the monolith binary was invoked with. Of course there are obvious downsides to this approach.
Doubt that, looking at my list of applications - I have 124. So, 100mb * 124 = 12.4 gb and I have half a terabyte of storage... Windows 10 requires 16 gb of storage. Heck most phones have 64 gb these days.
We need to stop living in the past - this very issue has probably contributed to the scourge of Electron crap being thrown at our faces since it doesn't suffer from dependency hell they just throw a bunch of javascript into an encapsulated instance of chrome and call it a day.
I have 971 binaries in /usr/bin alone. If they were 100mb each, I'd be looking at 94GB of space on a 250GB laptop ssd. 94GB that I'd have to re-download every time there's a security patch to a common library (e.g. libc). I'll keep living in the past and use shared libraries until download speeds and disk space increase by a couple orders of magnitude.
1. most files in /usr/bin are much smaller than 100mb when statically linked; 100mb is for e.g. gui applications
2. Even in an absurd world where each coreutils executable required 100mb of libraries, a busybox-like delivery would already shave ~10GB off of that. Other improvements can be made: binary deltas for security updates, performing the final link step at package install time, probably others.
3. libc updates have introduced security issues; shared library updates in general break things. I can take a statically linked executable from 1998 and run it today.
Lastly, this is totally unrelated to the question because 971 statically linked command line applications will be well under 1GB, but a 250GB drive? The last time I had a drive that small was a 100GB drive in a PowerBook G4. Linux (and p9 from TFA) are OSes used primarily from the developers (at least until the mythical year of linux on the desktop). Springing $200 for a 512GB SSD upgrade seems well worth it if you are being paid a developers salary anywhere in the western world.
Too late to edit, but gnu coreutils statically linked is 8.8MB total for 105 executables versus 5.5MB for Ubuntu's dynamically linked version.
The largest executable is ptx at 272kb vs 72kb for the Ubuntu binary.
For the smallest, false is 48k statically linked vs 32k for the Ubuntu binary.
If all 970 executables in /usr/bin average out to 100kb of extra space, that's less than 100MB overhead.
[edit]
Stripping the binaries decreases the size to about 7MB total or byte sizes of 34312 vs 30824 for a stripped false binary and 251752 vs 71928 for ptx.
For download times, a tar.xz is a good measurement and it's 819k for the 105 statically linked files or 1015k for the full installation of coreutils including the info files and manpages.
[edit2]
Some proponents of static linking talk about performance, I think it's a negligible win, but as I have it handy I thought I'd measure:
>For the smallest, false is 48k statically linked vs 32k for the Ubuntu binary.
Lol, you have to do some kind of stripping or GC sections or what not for this to be a fair comparison. A proper version of false is 508bytes on my machine.
Clearly most of those 971 binaries wouldn't be that large as they only use a subset of the shared libraries functionality and therefore everything else could be left out.
Wow, I checked but apparently the Pi 3 DOES meet the Windows 10 system requirements just barely. I wonder how fast the UI and Cortana run...
Win 10 Specs:
Processor: 1 gigahertz (GHz) or faster processor or SoC.
RAM: 1 gigabyte (GB) for 32-bit or 2 GB for 64-bit.
Hard disk space: 16 GB for 32-bit OS 20 GB for 64-bit OS.
Graphics card: DirectX 9 or later with WDDM 1.0 driver.
Display: 800x600
Ras Pi 3:
CPU: 4× ARM Cortex-A53, 1.2GHz.
GPU: Broadcom VideoCore IV.
RAM: 1GB LPDDR2 (900 MHz)
Networking: 10/100 Ethernet, 2.4GHz 802.11n wireless.
Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy.
Storage: microSD.
> Ras Pi 3: CPU: 4× ARM Cortex-A53, 1.2GHz. GPU: Broadcom VideoCore IV. RAM: 1GB LPDDR2 (900 MHz) Networking: 10/100 Ethernet, 2.4GHz 802.11n wireless. Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy. Storage: microSD.
That's Model B, the Model B+ specs are a little bit better. But still only 1GB of RAM which I suspect to be the biggest bottleneck here. Storage also maybe but the Pi can boot from USB nowadays which might bring it to a good enough level.
My first thought is that you might be able to boot Win10 with 1GB of RAM, but there won't be much of anything left for your applications. Swapping is on the slow CPU hungry SD card too. It's not going to be fun.
Windows 10 IoT Core has been an option for Raspberry Pi for a while. It's a mostly headless (just the bare amount of UWP GUI support, no Win32), desktop-less SKU intended for embedded installs.
It's the same concept. For linux you'd use SSH which gets you to a shell for remote administration, for Windows you use powershell via the Enter-PSSession command.
Cortex-A53 is an ultra low power, tiny core. It's okay for an embedded toy, it's miserable for a real computer. You really really want at least a Cortex-A72.
No reason to get excited folks - its YAEC (yet another electron component).
Me: Wouldn't it be great if we had a light-weight native chat app that was compatible with all of the many slow-resource intensive chat programs i am chained to?
Everyone else: We have solved your problem by creating a new standard resource intensive chat program that solves none of your problems! Also it has cool animations!
You: I’m too lazy to do much more than wine about my problems.
Everyone else: well, we’re just going to hang out over here with the solution. Come join us when your done whining.
I am excited by this project and so are a few people I showed it to.
I have 3 or 4 of these messengers open at any given time. Resource consumption has never been an issue for me - needing to have multiple "talk to people" windows/programs for what I consider the same task annoys me every single day.
Don't look now, but PFAs have been "replaced" with a chemical called "GenX." These companies will just shapeshift their toxic sludge every time a major suit is won. Sickening...
This is the problem with our current approach to safety testing; it takes decades of statistical analysis across the population in order to determine whether there are long-term effects from these chemicals. By the time there is evidence to make PFAS illegal, a new alternative will be found. Who knows if this alternative will be turn out to be better or worse that PFAS in 30 years?
This is a hard problem; in general you don't want to shut off all new technological development, and presumably the worse something is for you, the faster the harm will become apparent (e.g. thalidomide). But I'd be interested to see a full-system cost/benefit analysis of e.g. PFAS. If the cost is "with X probability, cause Y QUALYs of harm to the population over 30 years", and the benefit is "improve convenience of cooking by making pans non-stick", what are the maximum values of X and Y that we should be happy to agree to?
It doesn't seem to me that society is currently well equipped to make decisions in this way.
To add to this is the fact that we also have plenty of evidence that industry will do the wrong thing. Lead additives to gasoline is a common example but the story of Diethylstilbestrol (more commonly known as DES) is so much worse.
10 million or more fetuses exposed over 30 years with results ranging from fatal aggressive cancers in young children to birth defects. DES still shows effects two full generations later - in the grandchildren.
During the time DES was in use it was often defended using the “But women have estrogen already and this is exactly the same so obviously it’s fine” sorts of dismissals.
And now, here and again I encounter people dismissing concerns about BPA or PFOA and other endocrine disrupters with hand waving about how if there was really a problem we would have seen it and reacted to it by now so - the reasoning goes - obviously there is not a problem or, if there is one, it’s minor. And then I think of DES.
Most compostable bio plastics are made of Poly-lactic acid (lactic acid is the stuff that gives that burning feeling in your muscles after a workout) from corn.
PLA can compost in industrial sites, but (edit: add a not here) in normal environments, perhaps that is the reason for your quote marks.
So at least the bulk of the material in the bioware is pretty safe, especially when compared against PFA/PFOAs. That's not to say that it's impossible to mix PLA with some other, unsafe chemicals.
IIRC biostarch PLA can be produced from any industrial waste product high in cellulose. In practice this would include for example sugar cane in addition to corn husks. It is often said that they will completely degrade within 14 days in a warm vegetative compost environment. How closely a typical landfill replicates this optimal, aerated environment is questionable. Anyway, they are a lot better to have discarded around the planet than most plastic. The problem is that they are extremely energy inefficient to produce.
Traditional polymers: Oil in, power in, cheap product out, correct disposal and recycling required or planet suffers.
Biostarch polymers: Industrial waste in, huge amount of power in, comparable but more expensive product out (but can be relied on to biodegrade eventually if incorrectly disposed of).
The real solution is better food distribution systems with more efficient and re-usable packaging and cutlery, so that disposal is not required.
Still happens in America today. I refilled a glass jug at a local brewery today. $5 deposit on a 750ml bottle, can return for the deposit or just leave it in the car and get it refilled at just about any brewery, even some liquor stores, restaurants and grocery stores.
Better food distribution systems would also remove, for example, the need for personal motor vehicles, personal grocery trips, spatially inefficient retail spaces, the non-ideal refrigeration and other concerns deriving from food safety concerns in such spaces, and even individual package labeling.
Nobody has personal time or money to do the research required. We need some organization to centralize the work and indicate what's safe and what's not safe with enough robustness that unsafe products aren't easily sold to the unwary.
We generally call these things government agencies, but any other body with the same function - private or public - will be susceptible to the same kinds of forces that government agencies are. All we can do is try and build institutions good processes, adversarial audits that ensure processes are followed, and mechanisms to adjust processes when they're found to be lacking.
We generally call the latter mechanisms democracy. It's not great, but it's the best we've come up with.
Well, you'll end up with toxic drinking water with this attitude. I don't know what the right solution is, but saying you don't know enough at this point to throw out your teflon pans and avoid certain products and that you don't want to research things is lazy and ignorant.
Citizen's levying large class-actions suits and making documentaries like "The Devil We Know" are perhaps the best tools we have to stop fascist corruption.
The same! Windows 10 seemed like it started out stable enough, but it’s been getting flakier by the year for me. I’m now keeping a log of things that go wrong with it, just for fun. Every once in a while I look at the list and ask myself, how on earth did they screw up start menu search?![0]
There are ways for us "end-users" to get a hold of LTSC. First download the demo from microsoft then go to ebay to buy a key from some shady guy for 14$. Seems to work for me :P
Very creative project! Did you experience any issues doing pseudo-low-level programming with Javascript's lack of typing system or definite integer/float data-types?
Thank you, and no issues, because I didn't implement any low-level programming. I use React/Redux and Canvas 2D, with some custom shape drawing to avoid antialiasing (e.g. Bresenham's algorithm).
Guess what? Electron is everywhere and everything. Electron is taking over - its raining hamburgers.... RUN
Seriously though, I guarantee it would nuke old hardware into orbit. Its unfortunately not feasible IMHO due to modern software glut. More power to Drew, but many people are forced into using Skype, Slack, Discord :/