Author Topic: creating a text pattern recognition tool  (Read 1241 times)

sanmahaan

  • Newbie
  • *
  • Posts: 1
creating a text pattern recognition tool
« on: August 28, 2017, 12:01:21 PM »
Hello,
I am new to hyper next studio.
Wish to know if there is any way I can build a text pattern recognition tool using hypernext.
Almost like a fuzzy text search.

Thanks in advance.

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 381
  • Here to help you
Re: creating a text pattern recognition tool
« Reply #1 on: August 28, 2017, 01:00:13 PM »
Hello,

Welcome to HyperNext and our forums.

Yes, you could use HN to do a fuzzy search on text data as it has quite comprehensive string handling functionality.

It has over 30 string functions/procedures and these are documented in the String Handling section of both the Language Reference PDF and InBuilt Help.

Chapter 5 of the QuickStart PDF explains about text and variables in HN.

One thing, HN has quite simple commands whereas most languages can have complex commands built up from many terms. So perhaps it might be  too verbose for many programmers.

Also the HN language is interpreted, therefore its runtime execution is not as fast as a fully compiled language although with the speed of modern processors it is still very fast. This could be an issue for you.

So perhaps take a look at the String Handling in the Language Reference, and if that looks okay then look at the QuickStart guide so you could start building your project.



I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

Mastersen

  • Newbie
  • *
  • Posts: 1
Re: creating a text pattern recognition tool
« Reply #2 on: October 19, 2018, 01:33:09 PM »
Hi Malkom, can you give me an example of a processor that wouldn't have any issues with HN? How modern are we talking here?

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 381
  • Here to help you
Re: creating a text pattern recognition tool
« Reply #3 on: October 19, 2018, 06:43:25 PM »
Hi Malkom, can you give me an example of a processor that wouldn't have any issues with HN? How modern are we talking here?

Hi Mastersen,

Welcome to our forums.

Sorry, but its not possible to specify such a processor because it depends upon the HyperNext script(program) and how fast you need it to run.

For instance, if you need HN to produce a result in 1 second but it only takes 1mS on your target computer then surely that is fast enough. It doesn't really matter if a compiled language like C++ might take just take 0.01 mS, that is 100 times faster.

Its actually quite a complex to predict the performance before hand but with today's processors HN will be fast enough for many apps that require a graphical user interface.

HN and its runtime engine is compiled but it executes a script by interpreting one line at a time. If the line has a simple command like Increment x then it will be closer to the speed of compiled code than a multi-operand IF THEN statement.

HN is meant as a general purpose programming environment where the user can quickly develop a short program to solve some problem. I often use HN to generate some stats and graph them. With HN there is no need to specify things like variable types, graphics libraries etc.  However, for most things I use compiled languages like Free Pascal because they have the special functionality i need, are very fast and are widely used.

By the way, there are many programming languages that are interpreted, for instance Python is in its standard implementation.

Many years ago I did some benchmarks with HN on FOR loops and computation etc over millions of iterations, I compared it with Realbasic and Delphi. Delphi was several times faster than Realbasic, and Realbasic was several times faster than HN.

I hope this makes sense.

Malkom
« Last Edit: October 21, 2018, 05:26:51 AM by Malkom »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything