Message Boards Message Boards

0
|
1465 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

More efficient way to extract info about Wolfram symbols and their docs?

Posted 8 months ago

Hello! I am working on the Clojure -> Wolfram bridge lib, https://github.com/scicloj/wolframite . One of the things we want to do is to "import" information about available Wolfram symbols (functions, entities, etc.) and their docs. What we do now is asking Wolfram to evaluate

Map[Function[{e},{e["Name"],e["PlaintextUsage"]}],WolframLanguageData[]]

but it is really slow, taking something between 30 and 60s on my Mac. I wonder if there is some faster way to get this information?

Thank you! Cheers, Jakub

POSTED BY: Jakub Holý
2 Replies
Posted 8 months ago

Thanks a lot, Rohit! The original code takes over 30s while yours just a few. Many thanks!

POSTED BY: Jakub Holý
Posted 8 months ago

Apart from the initial download, this should be faster

data = EntityValue[WolframLanguageData[], {"Name", "PlaintextUsage"}, "EntityPropertyAssociation"];
data // Shallow
data[Entity["WolframLanguageSymbol", "Sin"]]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract