Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jbk

#1
Off-Topic Discussions / AI on a Pentium 2 PC
May 09, 2025, 05:01:00 AM
"Someone Experimented With a 1997 Processor and Showed That Only 128 MB of Ram Were Needed to Run a Modern AI" https://indiandefencereview.com/someone-experimented-with-a-1997-processor-and-showed-that-only-128-mb-of-ram-were-needed-to-run-a-modern-ai/

this should be an interesting read for MrBcx
#2
Announcements / Re: Dark Theme for BCX Forum
May 06, 2025, 12:12:15 PM
Quote from: Quin on May 06, 2025, 11:57:28 AMAlso, my SMF reset me from the light to the dark theme randomly today...no idea what caused that.
that also happened to me today, that's what prompted my reply to this thread
#3
Announcements / Re: Dark Theme for BCX Forum
May 06, 2025, 10:03:48 AM
thanks for keeping the lite theme, I am not a fan of dark themes, I am baffled why people find it attractive
#4
Quote from: MrBcx on April 30, 2025, 07:11:12 PMI know one person who definitely is not interested in a project like that.
makes me wonder who that person might be  ;D
it compiles with Mingw-64 but the keyboard handling is eratic.
as for embedded interpreter/script engine, if it's embedded then I expect easy interoperability between the host and the interpreter/script engine, otherwise what's the point?
#5
MrBcx
try the following adaptation

'******************************************************
' copying a my_basic variable value to a bcx variable
' attribution:    by mrbcx april 29, 2025
'******************************************************

CONST MB_DOUBLE_FLOAT                        ' make the my_basic default double instead of single
#include "my_basic.c"

DIM myvar AS DOUBLE                          ' this is the receiving bcx variable
DIM script AS STRING
DIM value AS mb_value_t
DIM bas AS struct mb_interpreter_t PTR

script  = "INPUT " + WRAP$("enter a number ")+ ",PI"                           + CRLF$
script += "PI=PI*PI"                                                           + CRLF$
script += "PRINT " + WRAP$("the number squared = ")+ ",PI;"                    + CRLF$

mb_init()
mb_open(&bas)
mb_load_string(bas, script, TRUE)
mb_run(bas, TRUE)
mb_debug_get(bas, "PI", &value)              ' my_basic vars (like pi in this example) must be passed in uppercase
myvar = value.value.float_point

mb_close(&bas)
mb_dispose()

PRINT myvar

PAUSE
Quoteenter a number 12
the number squared = 144
 7.11454530011395E-322
however if you enter say "12.1" then you get a correct printout
I am seriously disliking My_Basic, it needs to go to the trash and forget about it
#6
thanks MrBcx
but I have been unsuccessful in assigning a value to a my_basic variable and then run a script using that value
#7
thank you MrBcx  ;D
yes, there's probably a directive to use double instead of single
<edit> for double one needs to #define MB_DOUBLE_FLOAT
#8
good morning MrBcx :)
did you ever try to retrieve values from variables in a script?
it seems that my_basic is plagued like all other scripting engines in that using the result calculations in the calling language is very hard if not impossible.
I see no point in having a script engine do calculations if the result is confined to the script engine.
#9
@Quin
interesting, I built a library and am trying to put together some kind of minimal header but it's slow going
#10
works as advertised 😁👍
#11
it's my experience that for certain code, the Intel compiler produces exes that are significantly faster than that of MSVC, so I wouldn't discount Intel just yet.
#12
Off-Topic Discussions / secure KVM switch
March 11, 2025, 08:58:44 AM
I want a secure(no backdoor) KVM switch, any advice?
with recent reports of a backdoor on popular patient monitors made in China I don't trust anything made in China and I don't want to spend more than $100
#13
hello MrBcx and Mr. airr  :)
have downloaded and tried VMware yet?
in case that you haven't, there's a download link bottom of page at https://www.neowin.net/software/vmware-workstation-pro-1763/
#14
User Contributions / Re: BMagic Snippet Manager
March 02, 2025, 05:55:26 PM
thank you airr, been looking forward to this, was afraid you had forgotten about it 😁
#15
thanks airr 👍