<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fracis on Medium]]></title>
        <description><![CDATA[Stories by Fracis on Medium]]></description>
        <link>https://medium.com/@light-city?source=rss-30eb99900622------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MfrM91ULAzLLqaw6fz_YKQ.png</url>
            <title>Stories by Fracis on Medium</title>
            <link>https://medium.com/@light-city?source=rss-30eb99900622------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:14:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@light-city/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[C++20: Span in Depth — Design Insights and Usage Pitfalls]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/c-20-span-in-depth-design-insights-and-usage-pitfalls-cd37272652a0?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1280/1*x9MKHkZ92VMGDZxJ2huYUA.jpeg" width="1280"></a></p><p class="medium-feed-snippet">C++20 Span: A Comprehensive Guide to Design and Potential Issues</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/c-20-span-in-depth-design-insights-and-usage-pitfalls-cd37272652a0?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/c-20-span-in-depth-design-insights-and-usage-pitfalls-cd37272652a0?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd37272652a0</guid>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[cplusplus]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 17:55:51 GMT</pubDate>
            <atom:updated>2024-12-10T17:55:51.407Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[In-Depth Exploration of the mutable Keyword in C++]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/in-depth-exploration-of-the-mutable-keyword-in-c-90d24327756d?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/2600/0*_vZ2NnoMcjEBZ8jW" width="5120"></a></p><p class="medium-feed-snippet">Designing Const-Correct Interfaces with Mutable Internals</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/in-depth-exploration-of-the-mutable-keyword-in-c-90d24327756d?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/in-depth-exploration-of-the-mutable-keyword-in-c-90d24327756d?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d24327756d</guid>
            <category><![CDATA[coders]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c-language]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Tue, 15 Oct 2024 17:45:08 GMT</pubDate>
            <atom:updated>2024-10-15T17:45:08.632Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Exploring C++20 Features: Exception Handling in constexpr Functions and Deprecation of Comma…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/exploring-c-20-features-exception-handling-in-constexpr-functions-and-deprecation-of-comma-39c749cd64c9?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1280/0*74CgNrn0Q1ICtDwX.jpg" width="1280"></a></p><p class="medium-feed-snippet">Improving Compile-Time Robustness and Readability</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/exploring-c-20-features-exception-handling-in-constexpr-functions-and-deprecation-of-comma-39c749cd64c9?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/exploring-c-20-features-exception-handling-in-constexpr-functions-and-deprecation-of-comma-39c749cd64c9?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/39c749cd64c9</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[cpp20]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[features]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Sun, 13 Oct 2024 19:57:44 GMT</pubDate>
            <atom:updated>2024-10-13T19:57:44.649Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Project Practice: Applying Theory to Practical Use of C::*ptr in Programming]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/project-practice-applying-theory-to-practical-use-of-c-ptr-in-programming-74fae9ba3544?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/2600/0*RnMUXsLWqinSA_ka" width="5132"></a></p><p class="medium-feed-snippet">Understanding&#xA0;::* in C++: What Are Member Pointers?</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/project-practice-applying-theory-to-practical-use-of-c-ptr-in-programming-74fae9ba3544?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/project-practice-applying-theory-to-practical-use-of-c-ptr-in-programming-74fae9ba3544?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/74fae9ba3544</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c-language]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Sat, 12 Oct 2024 10:49:03 GMT</pubDate>
            <atom:updated>2024-10-13T19:43:26.629Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[C++: Skipping Destructors Like Rust’s mem::forget]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/c-skipping-destructors-like-rusts-mem-forget-aae7e04b25bf?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/2600/0*vSHNwfgOKrwDqYFW" width="5616"></a></p><p class="medium-feed-snippet">Union, Placement New, and Unique_ptr Deleters: Techniques for Skipping Destructors</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/c-skipping-destructors-like-rusts-mem-forget-aae7e04b25bf?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/c-skipping-destructors-like-rusts-mem-forget-aae7e04b25bf?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/aae7e04b25bf</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[coders]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 16:38:34 GMT</pubDate>
            <atom:updated>2024-10-08T16:38:34.914Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[All About the Const Family in C++]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/all-about-the-const-family-in-c-a87070d602b6?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1672/1*PLYXqM9H5FRl1oHWDmJC3A.png" width="1672"></a></p><p class="medium-feed-snippet">Understanding const, constexpr, consteval, and constinit in Modern C++</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/all-about-the-const-family-in-c-a87070d602b6?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/all-about-the-const-family-in-c-a87070d602b6?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/a87070d602b6</guid>
            <category><![CDATA[c-language]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[cpp20]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Sun, 29 Sep 2024 16:54:14 GMT</pubDate>
            <atom:updated>2024-09-30T08:40:54.293Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding C++14 Variable Templates: A Comprehensive Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/understanding-c-14-variable-templates-a-comprehensive-guide-7817ce0d5c6e?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1496/1*sb6a8wXFcFpONyQ_VSvp4w.png" width="1496"></a></p><p class="medium-feed-snippet">Simplifying Type Traits with C++14 Variable Templates</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/understanding-c-14-variable-templates-a-comprehensive-guide-7817ce0d5c6e?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/understanding-c-14-variable-templates-a-comprehensive-guide-7817ce0d5c6e?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/7817ce0d5c6e</guid>
            <category><![CDATA[programing]]></category>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[cpp14]]></category>
            <category><![CDATA[template]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 01:59:43 GMT</pubDate>
            <atom:updated>2024-09-27T01:59:43.675Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding C++20: Optimization Hints with likely and unlikely Attributes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/understanding-c-20-optimization-hints-with-likely-and-unlikely-attributes-1d321c857b92?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1280/0*FXEAtI_g3GOaQE7E.jpg" width="1280"></a></p><p class="medium-feed-snippet">Optimizing Code Performance with Proper Use of likely and unlikely</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/understanding-c-20-optimization-hints-with-likely-and-unlikely-attributes-1d321c857b92?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/understanding-c-20-optimization-hints-with-likely-and-unlikely-attributes-1d321c857b92?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d321c857b92</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[cpp20]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[c-language]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 01:58:44 GMT</pubDate>
            <atom:updated>2024-09-27T01:58:44.526Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding Tail Recursion in C++: A Comprehensive Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/understanding-tail-recursion-in-c-a-comprehensive-guide-e68ba5ed4617?source=rss-30eb99900622------2"><img src="https://cdn-images-1.medium.com/max/1080/0*AIffV6aS74Kfay0D" width="1080"></a></p><p class="medium-feed-snippet">Maximizing Efficiency with C++ Tail Recursion Optimization</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/understanding-tail-recursion-in-c-a-comprehensive-guide-e68ba5ed4617?source=rss-30eb99900622------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/understanding-tail-recursion-in-c-a-comprehensive-guide-e68ba5ed4617?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/e68ba5ed4617</guid>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[tail-recursion]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c-programming]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 10:41:49 GMT</pubDate>
            <atom:updated>2024-09-26T23:03:01.961Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Boost Your PostgreSQL Database with Java: Step-by-Step Installation and Usage]]></title>
            <link>https://light-city.medium.com/boost-your-postgresql-database-with-java-step-by-step-installation-and-usage-a4639311216e?source=rss-30eb99900622------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4639311216e</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[reactjs-stepbystep-guide]]></category>
            <dc:creator><![CDATA[Fracis]]></dc:creator>
            <pubDate>Thu, 19 Sep 2024 08:07:48 GMT</pubDate>
            <atom:updated>2024-09-19T08:07:48.232Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Complete PL/Java Installation Guide</h4><p>PL/Java is one of PostgreSQL’s programming language extensions. Compared to PL/pgSQL (PostgreSQL’s native procedural language), it offers object-oriented features specific to Java and supports both Java’s standard libraries and third-party libraries. Since Java is a cross-platform language, using PL/Java allows developers to easily leverage Java’s existing ecosystem, such as Apache Commons, Spring Framework, or other tools for processing data within the database.</p><p>PL/Java is a PostgreSQL extension that enables user-defined functions (UDFs) to be written in Java. Through PL/Java, users can execute Java code within PostgreSQL, providing more flexibility and extensibility in database operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnLDLa_Dye6CDWWqZD1TOA.png" /></figure><h3>1. Installation</h3><p>You can use PostgreSQL version 16.</p><p>The latest tag of PL/Java is v1.6.7:</p><blockquote><a href="https://github.com/tada/pljava/tree/V1_6_7"><em>https://github.com/tada/pljava/tree/V1_6_7</em></a></blockquote><p>Java 9 or higher is required. If you’re using Java 8, there may be compilation issues.</p><p>Once mvn and java are installed, you can start using PL/Java.</p><h3>1.1 Installing PostgreSQL 16.3 from source</h3><pre>./configure --prefix=/home/admin/install/postgres --without-icu <br>make -j8 install</pre><p>Then, add the postgres/bin directory to the system path.</p><p>Now, initialize the database and start it:</p><pre>initdb -D /usr/local/pgsql/data</pre><p>Then:</p><pre>psql -U postgres</pre><p><a href="https://www.postgresql.org/ftp/source/v16.3/">File Browser</a></p><h3>1.2 Installing PL/Java</h3><pre>mvn clean package</pre><p>If you see all SUCCESS, the compilation was successful. Now, install the PostgreSQL extension:</p><pre>cd pljava-packaging/target/<br>java -jar pljava-pg16.jar</pre><p>If you see the following files installed in the PostgreSQL directory, the installation is complete:</p><pre>[admin@i-7dwsk0ty target]$ java -jar pljava-pg16.jar<br>/home/admin/install/postgres/lib/libpljava-so-1.6.7.so as bytes<br>/home/admin/install/postgres/share/pljava/pljava-1.6.7.jar as bytes<br>/home/admin/install/postgres/share/pljava/pljava-api-1.6.7.jar as bytes<br>/home/admin/install/postgres/share/pljava/pljava-examples-1.6.7.jar as bytes<br>/home/admin/install/postgres/share/extension/pljava.control as lines (ASCII)<br>... too many lines omitted</pre><h3>1.3 Configuring the JVM</h3><p>In the postgresql.conf file in the data directory, add the following line, then restart the database:</p><pre>pljava.libjvm_location=&#39;/code/jdk-9.0.4/lib/server/libjvm.so&#39;</pre><h3>2. Usage</h3><p>Create the extension. If you see the following, it was successful:</p><pre>postgres=# CREATE EXTENSION pljava;<br>CREATE EXTENSION</pre><p>Now you can write a simple “Hello, world” example, such as:</p><pre>package com.postgresql.pljava;<br><br>public class Hello {<br>    public static int test(Object data) throws Throwable {<br>        return 0;<br>    }<br>}</pre><p>You can use the jar command to create a JAR file:</p><pre>javac Hello.java<br>jar -cvf Hello.jar com/postgresql/pljava/Hello.class</pre><p>Now, load and use the test function in psql:</p><pre>postgres=# select sqlj.install_jar(&#39;file:///code/hashdata-lightning/Hello.jar&#39;, &#39;test&#39;, true);<br> install_jar <br>-------------<br> <br>(1 row)<br><br>postgres=# select sqlj.set_classpath(&#39;public&#39;, &#39;test&#39;);<br> set_classpath <br>---------------<br> <br>(1 row)<br>postgres=# CREATE OR REPLACE FUNCTION test(data anyelement)<br>RETURNS int<br>AS &#39;com.postgresql.pljava.Hello.test&#39;<br>LANGUAGE java;<br>CREATE FUNCTION</pre><p>Now, test it:</p><pre>gpadmin=# select test(1);<br> test <br>-------<br>     0<br>(1 row)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4639311216e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>