Questions tagged [amalgamation]

Use this tag for general amalgamation techniques regardles of programming languages or software.

Amalgamation is a general term that may mean combining multiple source code files into one file. It is also a cartographic generalization method that combines multiple polygons into a single polygon.

10 questions
7
votes
5 answers

Simple and efficient distribution of C++/Boost source code (amalgamation)

My job mostly consists of engineering analysis, but I find myself distributing code more and more frequently among my colleagues. A big pain is that not every user is proficient in the intricacies of compiling source code, and I cannot distribute…
Escualo
  • 40,844
  • 23
  • 87
  • 135
5
votes
3 answers

Why does SQLite provide amalgamations of their code?

Every time I download SQLite, I come across the fact that they provide several different versions of their source code, which is something I've actually never seen any other project do. And more so they provide Amalgamations of Source, that kind of…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
4
votes
1 answer

amalgamation sqlite

I'm recently reading the source code of sqlite3. In the amalgamation version, there are only four files. On the official website, they say that: "the amalgamation also makes it run faster" "We have measured performance improvements of between 5 and…
alwinlin
  • 703
  • 1
  • 5
  • 21
1
vote
2 answers

Merging small polygons with largest neighbour in R

I have a bunch of polygons representing land cover classes, however I don't need this much detail. I would like to merge small polygons (ie < 150m2) with it's largest neighbour. This would be similar to "Eliminate" in ArcGIS Pro or "eliminate…
seak23
  • 195
  • 9
1
vote
1 answer

Unwrap / amalgamate PHP code from several .php files

For debugging purposes, when working on PHP projects with many file / many include (example: Wordpress code), I would sometimes be interested in seeing the "unwrapped" code, and to amalgamate / flatten ("flatten" is the terminology used in…
Basj
  • 41,386
  • 99
  • 383
  • 673
1
vote
2 answers

Python 2.7.12 - Replacing dictionary keys from a list nested in another dictionary

I have 2 dictionaries describing item categories and values of items in different places categories = {'CAT1':['A','B','C'],'CAT2':['D','E','F'] items = {'A':[1.0],'B':[2.5, 1.0], 'C':[2.0], 'D':[0.2, 0.4], 'E':[0.1], 'F':[2.2, 2.4]} I need a third…
1
vote
1 answer

SQLite combine values of similar records into one

In my SQLite database I have a table called Tracks which is made up of the following columns: artist, track, genre1, genre2, genre3. The table contains many values which have the same artist and track values with different genre1, genre2, genre3…
Adam
  • 65
  • 7
0
votes
0 answers

How do I suppress printing codes from system headers in gcc -E

Basically, I need to amalgamate the source code into a single file . gcc -E almost does the job for me, except for the fact that I don't need to print the codes from system headers. That is it should print my code as well as any codes from 3rd party…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
0
votes
0 answers

Generate header amalgamation from multiple header and source files?

I've been using a header-only library, but it has actually separated it out into header (*.h) and source (*.c) files. SQLite creates a single file—primarily for other reasons related to optimisation—so I was wondering if there's an automated way of…
Samuel Marks
  • 1,611
  • 1
  • 20
  • 25
0
votes
1 answer

Massive performance difference between sqlite amalgamation 3.7 and 3.16

I have a MS Window executable, written in unmanaged plain "C", that places a GUI wrapper around an embedded database engine (SQLite). The SQLite capability is provided by the amalgamation package 3.7.14.1 Specifically the 2 files sqlite3.h and…
chiffi
  • 9
  • 3