defseg / psmith Goto Github PK
View Code? Open in Web Editor NEWA search tool for the PHOIBLE linguistic database
A search tool for the PHOIBLE linguistic database
There's a new numbered release of PHOIBLE out, so this should use that.
Language statistics (speaker population, latitude and longitude, etc.) aren't included in this release, so that'll have to be pulled from somewhere else. (Glottolog?)
I've just tried to search an increasingly large phoneme inventory, and it seems that searching more than 7 phonemes causes an error. One search string that reliably causes the error is this:
/t/ /d/ and /p/ and /b/ and /k/ and /g/ and /m/ and /o/
The full error message is as follows:
abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at jsStackTrace@https://defseg.io/psmith/sqljs/sql.js:3:13718 stackTrace@https://defseg.io/psmith/sqljs/sql.js:3:13889 abort@https://defseg.io/psmith/sqljs/sql.js:20:8469 abortOnCannotGrowMemory@https://defseg.io/psmith/sqljs/sql.js:3:14756 enlargeMemory@https://defseg.io/psmith/sqljs/sql.js:3:15210 Wt@https://defseg.io/psmith/sqljs/sql.js:12:1 bs@https://defseg.io/psmith/sqljs/sql.js:12:1 Gf@https://defseg.io/psmith/sqljs/sql.js:7:1 de@https://defseg.io/psmith/sqljs/sql.js:7:1 Wd@https://defseg.io/psmith/sqljs/sql.js:7:1 og@https://defseg.io/psmith/sqljs/sql.js:7:1 wh@https://defseg.io/psmith/sqljs/sql.js:7:1 qo@https://defseg.io/psmith/sqljs/sql.js:10:1 Kn@https://defseg.io/psmith/sqljs/sql.js:10:1 ri@https://defseg.io/psmith/sqljs/sql.js:13:1 qi@https://defseg.io/psmith/sqljs/sql.js:13:1 Statement.prototype.step@https://defseg.io/psmith/sqljs/sql.js:20:9992 Database.prototype.exec@https://defseg.io/psmith/sqljs/sql.js:20:15052 psherlock.search@https://defseg.io/psmith/search.js:32:18 @https://defseg.io/psmith/search_request.js:4:34 MessageBus.prototype.publish/<@https://defseg.io/psmith/messagebus.js:19:43 MessageBus.prototype.publish@https://defseg.io/psmith/messagebus.js:19:29 window.Psmith.UI/this.go_el.onclick@https://defseg.io/psmith/ui.js:14:51 If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
The message seems to change if the search is repeated, though I can't find a reliable pattern of why and how, and the error persists even with smaller searches. The only way to make it work properly again is to refresh the page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.